Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Last active March 23, 2018 18:38
Show Gist options
  • Save adrianhall/f67456d80cbe8f4e1b45d62b34162863 to your computer and use it in GitHub Desktop.
Save adrianhall/f67456d80cbe8f4e1b45d62b34162863 to your computer and use it in GitHub Desktop.
Creates an Amazon Pinpoint client manager
AWSMobileClient.getInstance().initialize(this).execute()
pinpointManager = PinpointManager(
PinpointConfiguration(this,
AWSMobileClient.getInstance().credentialsProvider,
AWSMobileClient.getInstance().configuration)
)
pinpointManager?.apply {
it.sessionClient.startSession()
it.analyticsClient.submitEvents()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment