# HsdpDeepLinkServiceFactory

*** ** * ** ***


```
@Keep
public final class HsdpDeepLinkServiceFactory
```

<br />

*** ** * ** ***

Entry point for triggering the Google Play inline install flow with persistent affordance.

## Summary

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.app.Activity)(https://developer.android.com/reference/android/app/Activity.html activity)` Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. |
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.content.Context)(https://developer.android.com/reference/android/content/Context.html context)` Creates the entry point for triggering the Google Play inline install flow from the client app. |
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.app.Activity,boolean)(https://developer.android.com/reference/android/app/Activity.html activity, boolean enableLoadingPanel)` Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. |
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.app.Activity,boolean,boolean)( https://developer.android.com/reference/android/app/Activity.html activity, boolean enableLoadingPanel, boolean useServiceBasedHsdp )` Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. |
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.app.Activity,boolean,boolean,boolean)( https://developer.android.com/reference/android/app/Activity.html activity, boolean enableLoadingPanel, boolean useServiceBasedHsdp, boolean sdkManagedConfigurationChanges )` Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. |
| `static https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkService` | `@https://developer.android.com/reference/androidx/annotation/Keep.html https://developer.android.com/reference/com/google/android/play/core/hsdp/service/HsdpDeepLinkServiceFactory#create(android.app.Activity,boolean,boolean,boolean,boolean)( https://developer.android.com/reference/android/app/Activity.html activity, boolean enableLoadingPanel, boolean useServiceBasedHsdp, boolean sdkManagedConfigurationChanges, boolean enableHpoa )` Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. |

## Public methods

### create

```
@Keep
public static HsdpDeepLinkService create(Activity activity)
```

Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. It will use activity based HSDP UI without loading panel.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Activity.html activity` | The activity to start the Google Play inline install deep link flow and used as the host to show the persistent affordance. |

### create

```
@Keep
public static HsdpDeepLinkService create(Context context)
```

Creates the entry point for triggering the Google Play inline install flow from the client app.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/content/Context.html context` | The context to create the HSDP deep link service. It could be an Activity or a non-Activity context. If non-Activity context is used, a shim activity will be used to trigger the service based HSDP UI without the persistent affordance. |

### create

```
@Keep
public static HsdpDeepLinkService create(Activity activity, boolean enableLoadingPanel)
```

Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app. It will use activity based HSDP UI.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Activity.html activity` | The activity to start the Google Play inline install deep link flow and used as the host to show the persistent affordance. |
| `boolean enableLoadingPanel` | Whether to enable the loading panel. |

### create

```
@Keep
public static HsdpDeepLinkService create(
    Activity activity,
    boolean enableLoadingPanel,
    boolean useServiceBasedHsdp
)
```

Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Activity.html activity` | The activity to start the Google Play inline install deep link flow and used as the host to show the persistent affordance. |
| `boolean enableLoadingPanel` | Whether to enable the loading panel. |
| `boolean useServiceBasedHsdp` | Whether to enable the service based HSDP UI. |

### create

```
@Keep
public static HsdpDeepLinkService create(
    Activity activity,
    boolean enableLoadingPanel,
    boolean useServiceBasedHsdp,
    boolean sdkManagedConfigurationChanges
)
```

Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Activity.html activity` | The activity to start the Google Play inline install deep link flow and used as the host to show the persistent affordance. |
| `boolean enableLoadingPanel` | Whether to enable the loading panel. |
| `boolean useServiceBasedHsdp` | Whether to enable the service based HSDP UI. |
| `boolean sdkManagedConfigurationChanges` | Whether the SDK should manage configuration changes automatically. |

### create

```
@Keep
public static HsdpDeepLinkService create(
    Activity activity,
    boolean enableLoadingPanel,
    boolean useServiceBasedHsdp,
    boolean sdkManagedConfigurationChanges,
    boolean enableHpoa
)
```

Creates the entry point for triggering the Google Play inline install flow with persistent affordance from the client app.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Activity.html activity` | The activity to start the Google Play inline install deep link flow and used as the host to show the persistent affordance. |
| `boolean enableLoadingPanel` | Whether to enable the loading panel. Default is `false` (only set to `true` if you want the SDK to render a loading overlay). |
| `boolean useServiceBasedHsdp` | Whether to enable the service-based HSDP UI. Set to `true` for modern service-based HSDP, or `false` for legacy activity-based HSDP. |
| `boolean sdkManagedConfigurationChanges` | Whether the SDK should manage configuration changes automatically. Default is `false`. |
| `boolean enableHpoa` | Whether to enable HPOA overlay after HSDP dismissal. |