Class FcmServicePushClientImpl
- java.lang.Object
-
- com.mongodb.stitch.android.services.fcm.internal.FcmServicePushClientImpl
-
- All Implemented Interfaces:
FcmServicePushClient
public final class FcmServicePushClientImpl extends Object implements FcmServicePushClient
-
-
Field Summary
-
Fields inherited from interface com.mongodb.stitch.android.services.fcm.FcmServicePushClient
factory
-
-
Constructor Summary
Constructors Constructor Description FcmServicePushClientImpl(CoreFcmServicePushClient client, TaskDispatcher dispatcher)
-
Method Summary
Modifier and Type Method Description Task<Void>
deregister()
Deregisters the FCM registration token bound to the currently logged in user's device on Stitch.Task<Void>
register(String registrationToken)
Registers the given FCM registration token with the currently logged in user's device on Stitch.
-
-
-
Constructor Detail
-
FcmServicePushClientImpl
public FcmServicePushClientImpl(CoreFcmServicePushClient client, TaskDispatcher dispatcher)
-
-
Method Detail
-
register
public Task<Void> register(String registrationToken)
Description copied from interface:FcmServicePushClient
Registers the given FCM registration token with the currently logged in user's device on Stitch.- Specified by:
register
in interfaceFcmServicePushClient
- Parameters:
registrationToken
- the registration token to register.- Returns:
- A
Task
that completes when the registration is finished.
-
deregister
public Task<Void> deregister()
Description copied from interface:FcmServicePushClient
Deregisters the FCM registration token bound to the currently logged in user's device on Stitch.- Specified by:
deregister
in interfaceFcmServicePushClient
- Returns:
- A
Task
that completes when the deregistration is finished.
-
-