Skip to content

Instantly share code, notes, and snippets.

@yongjhih
Created October 3, 2019 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yongjhih/ed4c1fd54ffe369db1b3acd93bc12fbb to your computer and use it in GitHub Desktop.
Save yongjhih/ed4c1fd54ffe369db1b3acd93bc12fbb to your computer and use it in GitHub Desktop.
val pinpoint: PinpointManager by lazy {
PinpointManager(PinpointConfiguration(
context,
awsClient,
awsConfig))
}
val awsConfig: AWSConfiguration by lazy { AWSConfiguration(context) }
val awsClient: AWSMobileClient by lazy {
AWSMobileClient.getInstance().initializes(context, awsConfig) {
onResult {
Log.d("FlutterAwsPlugin", "${it.userState}")
}
onError { e ->
e.printStackTrace()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment