Use AWS SDK
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).escapeHatch
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin) RxAmplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");AnalyticsClient analyticsClient = plugin.getEscapeHatch();