Class StitchPushImpl
- java.lang.Object
-
- com.mongodb.stitch.android.core.push.internal.StitchPushImpl
-
- All Implemented Interfaces:
StitchPush
public class StitchPushImpl extends Object implements StitchPush
-
-
Constructor Summary
Constructors Constructor Description StitchPushImpl(StitchAuthRequestClient requestClient, StitchPushRoutes pushRoutes, TaskDispatcher dispatcher)
-
Method Summary
Modifier and Type Method Description <T> T
getClient(NamedPushClientFactory<T> factory, String serviceName)
Gets a push client for the given named push service.
-
-
-
Constructor Detail
-
StitchPushImpl
public StitchPushImpl(StitchAuthRequestClient requestClient, StitchPushRoutes pushRoutes, TaskDispatcher dispatcher)
-
-
Method Detail
-
getClient
public <T> T getClient(NamedPushClientFactory<T> factory, String serviceName)
Description copied from interface:StitchPush
Gets a push client for the given named push service.- Specified by:
getClient
in interfaceStitchPush
- Type Parameters:
T
- the type of client to be returned by the provider.- Parameters:
factory
- the provider that will create a client for the authentication provider.serviceName
- the name of the push service.- Returns:
- a client to interact with the push service.
-
-