Use AWS SDK
These docs cover Amplify Gen 1. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.
For advanced use cases where Amplify does not provide the functionality, you can retrieve the escape hatch to access the underlying Amazon Pinpoint client.
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin) Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");AnalyticsClient analyticsClient = plugin.getEscapeHatch();val plugin = Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin")val analyticsClient = (plugin as AWSPinpointAnalyticsPlugin).escapeHatchAWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin) RxAmplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");AnalyticsClient analyticsClient = plugin.getEscapeHatch();