ConnectedDevicesPlatform Klasse
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. ConnectedDevicesPlatform
- com.
public class ConnectedDevicesPlatform
Eine Klasse, die die Plattform für verbundene Geräte darstellt und die Verbindung der App damit verwaltet.
Zusammenfassung zum Konstruktor
| Konstruktor | Beschreibung |
|---|---|
| ConnectedDevicesPlatform(@NonNull Context context) |
Erstellt und initialisiert eine neue Instanz dieser Klasse. |
| ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings) |
Erstellt und initialisiert eine neue Instanz dieser Klasse. |
Methodenzusammenfassung
| Modifizierer und Typ | Methode und Beschreibung |
|---|---|
|
Connected |
getAccountManager()
Abrufen ConnectedDevicesAccountManager Instanz, die von der Plattform gehalten wird |
|
Connected |
getNotificationRegistrationManager()
Abrufen ConnectedDevicesNotificationRegistrationManager Instanz, die von der Plattform gehalten wird |
|
Connected |
processNotification(@NonNull Bundle bundle)
Verarbeiten eingehender GCM-Benachrichtigungen |
|
Connected |
processNotification(@NonNull Map map)
Verarbeiten eingehender FCM-Benachrichtigungen |
|
Async |
processNotificationAsync(@NonNull ConnectedDevicesNotification notification)
Verarbeiten eingehender Benachrichtigungen. Wenn die Benachrichtigung nicht für connectedDevicesPlatform gilt, wird die zurückgegebene AsyncOperation so schnell wie möglich asynchron abgeschlossen. |
|
Async |
shutdownAsync()
Beendet die Plattform für verbundene Geräte. |
| void |
start()
Starten der Plattform |
Details zum Konstruktor
ConnectedDevicesPlatform
public ConnectedDevicesPlatform(@NonNull Context context)
Erstellt und initialisiert eine neue Instanz dieser Klasse.
Parameter:
ConnectedDevicesPlatform
public ConnectedDevicesPlatform(@NonNull Context context, @NonNull ConnectedDevicesPlatformSettings settings)
Erstellt und initialisiert eine neue Instanz dieser Klasse.
Parameter:
Details zur Methode
getAccountManager
public ConnectedDevicesAccountManager getAccountManager()
Abrufen ConnectedDevicesAccountManager Instanz, die von der Plattform gehalten wird
Gibt zurück:
getNotificationRegistrationManager
public ConnectedDevicesNotificationRegistrationManager getNotificationRegistrationManager()
Abrufen ConnectedDevicesNotificationRegistrationManager Instanz, die von der Plattform gehalten wird
Gibt zurück:
processNotification
public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Bundle bundle)
Verarbeiten eingehender GCM-Benachrichtigungen
Parameter:
Gibt zurück:
processNotification
public ConnectedDevicesProcessNotificationOperation processNotification(@NonNull Map map)
Verarbeiten eingehender FCM-Benachrichtigungen
Parameter:
Gibt zurück:
processNotificationAsync
public AsyncOperation
Verarbeiten eingehender Benachrichtigungen. Wenn die Benachrichtigung nicht für connectedDevicesPlatform gilt, wird die zurückgegebene AsyncOperation so schnell wie möglich asynchron abgeschlossen.
Parameter:
Gibt zurück:
shutdownAsync
public AsyncOperation
Beendet die Plattform für verbundene Geräte.
Gibt zurück:
start
public void start()
Starten der Plattform