HsdpDeepLinkService

public interface HsdpDeepLinkService

com.google.android.play.core.hsdp.service.HsdpDeepLinkService


The interface to start the Google Play inline install flow with persistent affordance.

Summary

Nested classes

interface HsdpDeepLinkService.AffordanceListener

Listener for handling events when to stop the Google Play inline install affordance. 

interface HsdpDeepLinkService.HsdpDeepLinkServiceListener

Listener for handling events during the Google Play inline install flow. 

Public methods

abstract void open(String targetAppPackageName, String referrer, HsdpDeepLinkService.HsdpDeepLinkServiceListener listener)

Opens the Google Play inline install flow.

abstract void open(String targetAppPackageName, String referrer, HsdpDeepLinkService.HsdpDeepLinkServiceListener listener, Map<StringString> extraQueryParams)

Opens the Google Play inline install flow with extra query parameters.

abstract void stopAffordance(String targetAppPackageName, HsdpDeepLinkService.AffordanceListener listener)

Stops and dismisses the affordance tracking for the Google Play inline install flow.

Public methods

open

public abstract void open (String targetAppPackageName, 
                String referrer, 
                HsdpDeepLinkService.HsdpDeepLinkServiceListener listener)

Opens the Google Play inline install flow.

Parameters
targetAppPackageName String: The package name of the app to install.

referrer String: The referrer tracking string.

listener HsdpDeepLinkService.HsdpDeepLinkServiceListener: The listener for the HSDP/HPOA deep link flow.

open

public abstract void open (String targetAppPackageName, 
                String referrer, 
                HsdpDeepLinkService.HsdpDeepLinkServiceListener listener, 
                Map<StringString> extraQueryParams)

Opens the Google Play inline install flow with extra query parameters.

Parameters
targetAppPackageName String: The package name of the app to install.

referrer String: The referrer tracking string.

listener HsdpDeepLinkService.HsdpDeepLinkServiceListener: The listener for the inline install flow.

extraQueryParams Map: The extra query params to append on the deep link URL.

stopAffordance

public abstract void stopAffordance (String targetAppPackageName, 
                HsdpDeepLinkService.AffordanceListener listener)

Stops and dismisses the affordance tracking for the Google Play inline install flow.

This method should be called when the caller app is no longer interested in tracking the installation state of the app via the affordance.

This method will not dismiss the Google Play inline install (HSDP) pop-up which can only be dismissed by the user.

Parameters
targetAppPackageName String: The package name of the app to install.

listener HsdpDeepLinkService.AffordanceListener