setOfflinePushStatus

Introduction

Set the offline push status.

Parameter details

Parameter name Parameter type Required Platform Description
status AppStatus yes All The app status.
totalCount String no All The total unread count.

Returned template

V2TimCallback

{
    code : int
    desc : String
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.

Code example

    final CoreServicesImpl coreInstance = TIMUIKitCore.getInstance();
    V2TimCallback data = await coreInstance.setOfflinePushStatus(
      status: AppStatus.foreground,
      totalCount: 0,
    );
    if (data.code == 0) {
    }

results matching ""

    No results matching ""