Use AWS SDK
For advanced use cases where Amplify does not provide the functionality, you can retrieve an escape hatch to access the underlying Amazon Pinpoint client.
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin) Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");PinpointClient pinpointClient = plugin.getEscapeHatch();
val plugin = Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin")val pinpointClient = (plugin as AWSPinpointAnalyticsPlugin).escapeHatch
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin) RxAmplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");PinpointClient pinpointClient = plugin.getEscapeHatch();