次の方法で共有


クラス MCDConnectedDevicesPlatform

@interface MCDConnectedDevicesPlatform : NSObject

接続済みデバイス プラットフォームを表し、アプリの接続を管理するクラスです。

プロパティ

accountManager

@property (nonatomic, readonly, nonnull) MCDConnectedDevicesAccountManager* accountManager;

プラットフォームによって保持されている MCDConnectedDevicesAccountManager インスタンス。

notificationRegistrationManager

@property (nonatomic, readonly, nonnull) MCDConnectedDevicesNotificationRegistrationManager* notificationRegistrationManager;

プラットフォームによって保持されている MCDConnectedDevicesNotificationRegistrationManager インスタンス。

コンストラクター

platformWithSettings

+ (nullable instancetype)platformWithSettings:(MCDConnectedDevicesPlatformSettings* _Nonnull)settings;

指定したプラットフォーム設定を持つこのクラスの新しいインスタンス。

パラメーター

  • settings

プラットフォームのアプリの設定を格納する MCDConnectedDevicesPlatformSettings オブジェクト。

戻り値

アプリのプラットフォーム設定を含む MCDConnectedDevicesPlatform オブジェクトを返します。

initWithSettings

- (nullable instancetype)initWithSettings:(MCDConnectedDevicesPlatformSettings* _Nonnull)settings;

プラットフォーム設定を持つこのクラスの新しいインスタンス。

パラメーター

  • settings

プラットフォームのアプリの設定を格納する MCDConnectedDevicesPlatformSettings オブジェクト。

戻り値

アプリのプラットフォーム設定で初期化された MCDConnectedDevicesPlatform オブジェクトを返します。

メソッド

processNotification

- (MCDConnectedDevicesProcessNotificationOperation* _Nonnull)processNotification:(NSDictionary* _Nonnull)notification;

受信 APNs 通知を処理します。

パラメーター

  • notification

処理する APN 通知が含まれます。

戻り値

MCDConnectedDevicesProcessNotificationOperation クラスのインスタンス。

start

- (void) start;

プラットフォームを起動します。

shutdownAsync

- (void)shutdownAsync:(void (^_Nonnull)(NSError* _Nullable))completionBlock;

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

パラメーター

  • completionBlock

完了時に呼び出すブロック。