次の方法で共有


ConnectedDevicesPlatform クラス

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.ConnectedDevicesPlatform

public class ConnectedDevicesPlatform

Connected Devices Platform を表し、アプリの接続を管理するクラス。

コンストラクターの概要

コンストラクター 説明
ConnectedDevicesPlatform(@NonNull Context context)

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

ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings)

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

メソッドの概要

修飾子と型 メソッドと説明
ConnectedDevicesAccountManager getAccountManager()

プラットフォームによって保持 ConnectedDevicesAccountManager インスタンスを取得する

ConnectedDevicesNotificationRegistrationManager getNotificationRegistrationManager()

プラットフォームによって保持 ConnectedDevicesNotificationRegistrationManager インスタンスを取得する

ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Bundle bundle)

受信 GCM 通知を処理する

ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Map map)

受信 FCM 通知を処理する

AsyncOperation<Void> processNotificationAsync(@NonNull ConnectedDevicesNotification notification)

受信通知を処理します。 通知が ConnectedDevicesPlatform 用でない場合、返される AsyncOperation はできるだけ早く非同期的に完了します。

AsyncOperation<Void> shutdownAsync()

接続されているデバイス プラットフォームをシャットダウンします。

void start()

プラットフォームを起動する

コンストラクターの詳細

ConnectedDevicesPlatform

public ConnectedDevicesPlatform(@NonNull Context context)

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

パラメーター:

context - 呼び出し元アプリケーションのコンテキスト。 これは、アプリ固有のリソースを ConnectedDevicesPlatformに公開するために必要です。

ConnectedDevicesPlatform

public ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings)

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

パラメーター:

context - 呼び出し元アプリケーションのコンテキスト。 これは、アプリ固有のリソースを Connected Devices ConnectedDevicesPlatform に公開するために必要です。
settings - Platform オブジェクトを構築する PlatformSettings

メソッドの詳細

getAccountManager

public ConnectedDevicesAccountManager getAccountManager()

プラットフォームによって保持 ConnectedDevicesAccountManager インスタンスを取得する

戻り値:

AccountManager

getNotificationRegistrationManager

public ConnectedDevicesNotificationRegistrationManager getNotificationRegistrationManager()

プラットフォームによって保持 ConnectedDevicesNotificationRegistrationManager インスタンスを取得する

戻り値:

NotificationRegistrationManager

processNotification

public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Bundle bundle)

受信 GCM 通知を処理する

パラメーター:

bundle - GcmListenerService.onMessageReceived から受信したバンドル

戻り値:

通知の処理結果

processNotification

public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Map map)

受信 FCM 通知を処理する

パラメーター:

map - FirebaseMessagingService.onMessageReceived から受信したバンドル

戻り値:

通知の処理結果

processNotificationAsync

public AsyncOperation processNotificationAsync(@NonNull ConnectedDevicesNotification notification)

受信通知を処理します。 通知が ConnectedDevicesPlatform 用でない場合、返される AsyncOperation はできるだけ早く非同期的に完了します。

パラメーター:

notification - 処理する ConnectedDevicesNotification。

戻り値:

ConnectedDevicesPlatform がこの通知の処理をいつ完了するかを示す AsyncOperation 操作。

shutdownAsync

public AsyncOperation shutdownAsync()

接続されているデバイス プラットフォームをシャットダウンします。

戻り値:

この操作を表す AsyncOperation<T>

start

public void start()

プラットフォームを起動する

適用対象