public final class Stitch extends Object
StitchAppClient
s and work with Stitch.Constructor and Description |
---|
Stitch() |
Modifier and Type | Method and Description |
---|---|
static StitchAppClient |
getAppClient(String clientAppId)
Gets an app client by its client app id if it has been initialized; throws if none can be
found.
|
static StitchAppClient |
getDefaultAppClient()
Gets the default initialized app client.
|
static boolean |
hasAppClient(String clientAppId)
Checks if an app client has been initialized by its client app id.
|
static StitchAppClient |
initializeAppClient(String clientAppId)
Initializes an app client for Stitch to use when using
getAppClient(String) }. |
static StitchAppClient |
initializeAppClient(String clientAppId,
StitchAppClientConfiguration config)
Initializes an app client for Stitch to use when using
getAppClient(String) }. |
static StitchAppClient |
initializeDefaultAppClient(String clientAppId)
Initializes the default app client for Stitch to use when using
getDefaultAppClient() . |
static StitchAppClient |
initializeDefaultAppClient(String clientAppId,
StitchAppClientConfiguration config)
Initializes the default app client for Stitch to use when using
getDefaultAppClient() . |
public static StitchAppClient getDefaultAppClient()
initializeDefaultAppClient(String)
should be used
to initialize the default app client.public static StitchAppClient getAppClient(@Nonnull String clientAppId)
clientAppId
- the client app id of the app client to get.public static boolean hasAppClient(String clientAppId)
clientAppId
- the client app id to search for.public static StitchAppClient initializeDefaultAppClient(@Nonnull String clientAppId)
getDefaultAppClient()
. Can only be called once.clientAppId
- the client app id to initialize an app client for.public static StitchAppClient initializeDefaultAppClient(@Nonnull String clientAppId, @Nonnull StitchAppClientConfiguration config)
getDefaultAppClient()
. Can only be called once.clientAppId
- the client app id to initialize an app client for.config
- the configuration to use to build the app client.public static StitchAppClient initializeAppClient(@Nonnull String clientAppId)
getAppClient(String)
}.
Can only be called once per client app id.clientAppId
- the client app id to initialize an app client for.public static StitchAppClient initializeAppClient(@Nonnull String clientAppId, @Nonnull StitchAppClientConfiguration config)
getAppClient(String)
}.
Can only be called once per client app id.clientAppId
- the client app id to initialize an app client for.config
- the configuration to use to build the app client.