For advanced use cases where Amplify does not provide the functionality, you can retrieve the escape hatch to access the underlying Amazon Pinpoint client.

import android0 from "/src/fragments/lib/android-escape-hatch-warning.mdx";

<Fragments fragments={{android: android0}} />

import android1 from "/src/fragments/lib/android-kotlin-java-interop.mdx";

<BlockSwitcher>

<Block name="Java">

<Fragments fragments={{android: android1}} />

```java
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin)
    Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");
PinpointClient pinpointClient = plugin.getEscapeHatch();
```

</Block>
<Block name="Kotlin">

```kotlin
val plugin = Amplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin")
val pinpointClient = (plugin as AWSPinpointAnalyticsPlugin).escapeHatch
```

</Block>
<Block name="RxJava">

```java
AWSPinpointAnalyticsPlugin plugin = (AWSPinpointAnalyticsPlugin)
    RxAmplify.Analytics.getPlugin("awsPinpointAnalyticsPlugin");
PinpointClient pinpointClient = plugin.getEscapeHatch();
```

</Block>
</BlockSwitcher>
