UserDataFeedNotificationTypes 类
- java.
lang. Object - SDKLoader
- com.
microsoft. connecteddevices. userdata. UserDataFeedNotificationTypes
- com.
public class UserDataFeedNotificationTypes
提供对 UserDataFeedSyncScope.setNotificationType 有效的通知类型
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
native String |
noNotification()
阻止新用户数据的任何通知,仅当调用 UserDataFeed.startSync 或以其他方式与服务器交互时接收新数据 |
native String |
notificationOnly()
将所有推送通知降级到通知,只告知系统同步以接收数据,即使数据可以包含在推送通知中 |
native String |
notificationWithPayload()
对传入推送通知的限制(域/服务器限制)没有限制 |
方法详细信息
noNotification
public static native String noNotification()
阻止新用户数据的任何通知,仅当调用 UserDataFeed.startSync 或以其他方式与服务器交互时接收新数据
返回:
类型值
notificationOnly
public static native String notificationOnly()
将所有推送通知降级到通知,只告知系统同步以接收数据,即使数据可以包含在推送通知中
返回:
类型值
notificationWithPayload
public static native String notificationWithPayload()
对传入推送通知的限制(域/服务器限制)没有限制
返回:
类型值