Interface AppClipHandoffCallback


public interface AppClipHandoffCallback

Receives the answer to AppClipHandoffSource.requestHandoff(AppClipHandoffCallback).

Exactly one method is called, once.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onHandoff(String code, long clickedSeconds)
    Called with the invite code an App Clip recorded.
    void
    Called when no clip handoff exists.
  • Method Details

    • onHandoff

      void onHandoff(String code, long clickedSeconds)

      Called with the invite code an App Clip recorded.

      Parameters
      • code: the invite code the clip received, never empty

      • clickedSeconds: when the link was tapped, in seconds since the epoch, or 0 when the clip did not record it

    • onUnavailable

      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: one of the REASON_ constants on Invites