Package io.rong.push
Class PushManager
-
- All Implemented Interfaces:
public class PushManager
/~english
-
-
Field Summary
Fields Modifier and Type Field Description public PushConfig
pushConfig
public long
configId
public PushType
serverPushType
-
Method Summary
Modifier and Type Method Description PushConfig
getPushConfig()
long
getConfigId()
PushType
getServerPushType()
static PushManager
getInstance()
void
init(Context context, PushConfig pushConfig)
void
onReceiveToken(Context context, PushType pushType, String token)
/~english void
onReceiveToken(Context context, PushType pushType, String token, String area)
/~english void
onReceiveToken(Context context, PushType pushType, String token, String area, boolean internal)
void
onSuccessResponse(Context context, PushType pushType, List<TokenBean> tokenList, Map<String, String> failMap)
/~english void
onNetworkChangeEvent(Context context)
/~english void
registerRong(Context context, PushType pushType)
/~english void
onErrorResponse(Context context, PushType pushType, String action, long resultCode)
/~english void
onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage)
/~english void
onNotificationMessageClicked(Context context, Intent pushIntent, PushType pushType, PushNotificationMessage pushNotificationMessage)
/~english void
onPushRawData(Context context, PushType pushType, String data)
/~english void
updatePushServerInfoFromToken(String token)
-
-
Method Detail
-
getPushConfig
PushConfig getPushConfig()
-
getConfigId
long getConfigId()
-
getServerPushType
PushType getServerPushType()
-
getInstance
static PushManager getInstance()
-
init
void init(Context context, PushConfig pushConfig)
-
onReceiveToken
void onReceiveToken(Context context, PushType pushType, String token)
/~english
-
onReceiveToken
void onReceiveToken(Context context, PushType pushType, String token, String area)
/~english
-
onReceiveToken
void onReceiveToken(Context context, PushType pushType, String token, String area, boolean internal)
-
onSuccessResponse
void onSuccessResponse(Context context, PushType pushType, List<TokenBean> tokenList, Map<String, String> failMap)
/~english
-
onNetworkChangeEvent
void onNetworkChangeEvent(Context context)
/~english
-
registerRong
void registerRong(Context context, PushType pushType)
/~english
-
onErrorResponse
void onErrorResponse(Context context, PushType pushType, String action, long resultCode)
/~english
-
onNotificationMessageArrived
void onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage)
/~english
-
onNotificationMessageClicked
void onNotificationMessageClicked(Context context, Intent pushIntent, PushType pushType, PushNotificationMessage pushNotificationMessage)
/~english
-
onPushRawData
void onPushRawData(Context context, PushType pushType, String data)
/~english
-
updatePushServerInfoFromToken
void updatePushServerInfoFromToken(String token)
-
-
-
-