public interface MixPushService
Modifier and Type | Method and Description |
---|---|
InvocationFuture<java.lang.Void> |
enable(boolean enable)
Enable or disable third-party push service
|
NoDisturbConfig |
getPushNoDisturbConfig()
Get the configuration of Do-Not-Disturb for push services
|
boolean |
isEnable()
Check if the third-party push service is enabled.
|
boolean |
isFCMIntent(Intent intent)
Activity starts by click FCM notifications
|
boolean |
isPushNoDisturbConfigExist()
Check if the Do-Not-Disturb setting is applied for push services in the SDK .
|
boolean |
isPushShowNoDetail()
Get the setting to hide or show the push details
|
java.lang.String |
parseFCMPayload(Intent intent)
Parse strings in FCM payload
|
InvocationFuture<java.lang.Void> |
setPushNoDisturbConfig(boolean isOpen,
java.lang.String startTime,
java.lang.String stopTime)
Set Do-Not Disturb period for push notifications in HH:mm format UTC+8.
|
InvocationFuture<java.lang.Void> |
setPushShowNoDetail(boolean showNoDetail)
Hide or show details of a push notification
|
InvocationFuture<java.lang.Void> enable(boolean enable)
enable
- true: enable the third-party push service. The SDK will send a confimation request to the CommsEase server. False: disable the third-party push service. The SDK also needs to send a notification to CommsEase server.boolean isEnable()
InvocationFuture<java.lang.Void> setPushNoDisturbConfig(boolean isOpen, java.lang.String startTime, java.lang.String stopTime)
isOpen
- enable or disable Do-Not-DisturbstartTime
- start time in HH:mm formatstopTime
- end time in Hh:mm formatInvocationFuture<java.lang.Void> setPushShowNoDetail(boolean showNoDetail)
showNoDetail
- Hide or show detailsboolean isPushShowNoDetail()
NoDisturbConfig getPushNoDisturbConfig()
boolean isPushNoDisturbConfigExist()
boolean isFCMIntent(Intent intent)
intent
- activity intentjava.lang.String parseFCMPayload(Intent intent)
intent
- activity intent