Klasse MCDConnectedDevicesPlatform

@interface MCDConnectedDevicesPlatform : NSObject

Diese Klasse soll die Plattform für verbundene Geräte darstellen und die Verbindung der App mit ihr verwalten.

Eigenschaften

accountManager

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

MCDConnectedDevicesAccountManager instance von der Plattform gespeichert.

notificationRegistrationManager

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

MCDConnectedDevicesNotificationRegistrationManager instance von der Plattform gespeichert.

Konstruktoren

platformWithSettings

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

Eine neue instance dieser Klasse mit angegebenen Plattformeinstellungen.

Parameter

  • settings

Das MCDConnectedDevicesPlatformSettings-Objekt, das die App-Einstellungen der Plattform speichert.

Gibt zurück

Gibt ein MCDConnectedDevicesPlatform-Objekt zurück, das die Plattformeinstellungen der App enthält.

initWithSettings

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

Eine neue instance dieser Klasse mit den Plattformeinstellungen.

Parameter

  • settings

Das MCDConnectedDevicesPlatformSettings-Objekt, das die App-Einstellungen der Plattform speichert.

Gibt zurück

Gibt ein MCDConnectedDevicesPlatform-Objekt zurück, das mit den Plattformeinstellungen der App initialisiert wurde.

Methoden

processNotification

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

Verarbeiten sie eingehende APNs-Benachrichtigungen.

Parameter

  • notification

Enthält die zu verarbeitende APNs-Benachrichtigung.

Gibt zurück

Eine instance der MCDConnectedDevicesProcessNotificationOperation-Klasse.

start

- (void) start;

Starten Sie die Plattform.

shutdownAsync

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

Beendet die Plattform für verbundene Geräte.

Parameter

  • completionBlock

Der Block, der nach Abschluss aufgerufen werden soll.