public interface AppClipHandoffCallback

Receives the answer to AppClipHandoffSource.requestHandoff.

Exactly one method is called, once.

Methods

public abstract void onHandoff(String code, long clickedSeconds)Called with the invite code an App Clip recorded.
public abstract void onUnavailable(String reason)Called when no clip handoff exists.

Method details

onHandoff

public abstract void onHandoff(String code, long clickedSeconds)
Called with the invite code an App Clip recorded.

Parameters

code String
the invite code the clip received, never empty
clickedSeconds long
when the link was tapped, in seconds since the epoch, or 0 when the clip did not record it

onUnavailable

public abstract void onUnavailable(String reason)
Called when no clip handoff exists. This is the normal answer for somebody who installed the application without ever tapping an invite link, and is not an error.

Parameters

reason String
one of the REASON_ constants on Invites