次の方法で共有


UserNotificationChannel クラス

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.userdata.usernotifications.UserNotificationChannel

public class UserNotificationChannel

このクラスは、アプリケーションのユーザー通知の受信と管理を処理する通知変更リーダーを提供します。

コンストラクターの概要

コンストラクター 説明
UserNotificationChannel(@NonNull UserDataFeed userDataFeed)

UserNotificationChannel の新しいインスタンスを作成して初期化します。

メソッドの概要

修飾子と型 メソッドと説明
UserNotificationReader createReader()

アプリ サーバーによって発行されたユーザー通知を受信および管理するためのユーザー通知リーダーを作成します。

UserNotificationReader createReaderWithOptions(@NonNull UserNotificationReaderOptions options)

オプションを使用してユーザー通知リーダーを作成する

UserNotificationReader createReaderWithState(@NonNull String serializedState)

アプリ サーバーによって発行されたユーザー通知を受信および管理するためのユーザー通知リーダーを作成します。 リーダーは、指定された追跡状態から開始されます。

AsyncOperation<UserNotificationUpdateResult> deleteUserNotificationAsync(@NonNull String notificationId)

ID に基づいてユーザー通知を削除します。

UserDataFeedSyncScope getSyncScope()

このユーザー通知チャネルの同期スコープを取得します。

AsyncOperation<UserNotification> getUserNotificationAsync(@NonNull String notificationId)

ID に基づいてユーザー通知を取得します。

コンストラクターの詳細

UserNotificationChannel

public UserNotificationChannel(@NonNull UserDataFeed userDataFeed)

UserNotificationChannel の新しいインスタンスを作成して初期化します。

パラメーター:

userDataFeed

メソッドの詳細

createReader

public UserNotificationReader createReader()

アプリ サーバーによって発行されたユーザー通知を受信および管理するためのユーザー通知リーダーを作成します。

createReaderWithOptions

public UserNotificationReader createReaderWithOptions(@NonNull UserNotificationReaderOptions options)

オプションを使用してユーザー通知リーダーを作成する

パラメーター:

options

createReaderWithState

public UserNotificationReader createReaderWithState(@NonNull String serializedState)

アプリ サーバーによって発行されたユーザー通知を受信および管理するためのユーザー通知リーダーを作成します。 リーダーは、指定された追跡状態から開始されます。

パラメーター:

serializedState

deleteUserNotificationAsync

public AsyncOperation deleteUserNotificationAsync(@NonNull String notificationId)

ID に基づいてユーザー通知を削除します。

パラメーター:

notificationId

getSyncScope

public static UserDataFeedSyncScope getSyncScope()

このユーザー通知チャネルの同期スコープを取得します。

getUserNotificationAsync

public AsyncOperation getUserNotificationAsync(@NonNull String notificationId)

ID に基づいてユーザー通知を取得します。

パラメーター:

notificationId

適用対象