public class NotificationClearStrategy extends Strategy
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CLEAR_ALL |
static int |
CLEAR_NOTIFY_ID |
static int |
CLEAR_NOTIFY_KEY |
APP_ID, APP_KEY, appId, appKey, context, DEVICE_ERROR_CODE, deviceId, enableRPC, executorService, FEEDBACK_PARAMETER_ERROR_CODE, isSupportRemoteInvoke, PUSH_ID, pushAPI, STRATEGY_CHILD_TYPE, STRATEGY_ClEAR_NOTIFICATION, STRATEGY_PACKAGE_NANME, STRATEGY_PARAMS, STRATEGY_REGISTER, STRATEGY_SUBALIAS, STRATEGY_SUBTAGS, STRATEGY_SWITCH, STRATEGY_SWITCH_SYSTEM_NOTIFICATION, STRATEGY_TYPE, STRATEGY_UNREGISTER, strategyPackageNanme, SUCCESS_CODE, TAG| 构造器和说明 |
|---|
NotificationClearStrategy(android.content.Context context,
java.util.concurrent.ScheduledExecutorService executorService,
boolean enableRpc) |
NotificationClearStrategy(android.content.Context context,
java.lang.String appId,
java.lang.String appKey,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected BasicPushStatus |
feedBackErrorResponse()
回复错误状态
|
protected BasicPushStatus |
localResponse()
组建虚拟成功消息,本地返回
运行在本应用进程中
|
protected boolean |
matchCondition()
检查参数是否非空
|
protected BasicPushStatus |
netWorkRequest()
网络请求,同步返回
运行在Cloud进程中
|
protected void |
sendReceiverMessage(BasicPushStatus message)
回调消息
|
protected android.content.Intent |
sendRpcRequest()
请消息发送给远程service
|
protected android.content.Intent[] |
sendRpcRequests() |
void |
setClearType(int clearType) |
void |
setNotifyId(int... notifyId) |
void |
setNotifyKey(java.lang.String notifyKey) |
protected int |
strategyType()
策略类型
|
findService, getDeviceId, isRegisterStatus, process, processMainThread, sendIntentMessage, setAppId, setAppKey, setExecutorService, setStrategyPackageNanme, setSupportRemoteInvoke, supportServiceRpcpublic static final int CLEAR_ALL
public static final int CLEAR_NOTIFY_ID
public static final int CLEAR_NOTIFY_KEY
public NotificationClearStrategy(android.content.Context context,
java.util.concurrent.ScheduledExecutorService executorService,
boolean enableRpc)
public NotificationClearStrategy(android.content.Context context,
java.lang.String appId,
java.lang.String appKey,
PushAPI pushAPI,
java.util.concurrent.ScheduledExecutorService executorService)
public void setNotifyId(int... notifyId)
public void setClearType(int clearType)
public void setNotifyKey(java.lang.String notifyKey)
protected boolean matchCondition()
StrategymatchCondition 在类中 Strategyprotected BasicPushStatus feedBackErrorResponse()
StrategyfeedBackErrorResponse 在类中 Strategyprotected android.content.Intent sendRpcRequest()
StrategysendRpcRequest 在类中 Strategyprotected android.content.Intent[] sendRpcRequests()
sendRpcRequests 在类中 Strategyprotected BasicPushStatus netWorkRequest()
StrategynetWorkRequest 在类中 Strategyprotected BasicPushStatus localResponse()
StrategylocalResponse 在类中 Strategyprotected void sendReceiverMessage(BasicPushStatus message)
StrategysendReceiverMessage 在类中 Strategyprotected int strategyType()
StrategystrategyType 在类中 Strategy