JavaScript is disabled on your browser.
bolts

Class AppLinks



  • public final class AppLinks
    extends java.lang.Object
    Provides a set of utility methods for working with incoming Intents that may contain App Link data.
    • Constructor Summary

      Constructors
      Constructor and Description
      AppLinks ()
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static android.os.Bundle getAppLinkData (android.content.Intent intent)
      Gets the App Link data for an intent, if there is any.
      static android.os.Bundle getAppLinkExtras (android.content.Intent intent)
      Gets the App Link extras for an intent, if there is any.
      static android.net.Uri getTargetUrl (android.content.Intent intent)
      Gets the target URL for an intent, regardless of whether the intent is from an App Link.
      static android.net.Uri getTargetUrlFromInboundIntent (android.content.Context context, android.content.Intent intent)
      Gets the target URL for an intent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppLinks

        public AppLinks()
    • Method Detail

      • getAppLinkData

        public static android.os.Bundle getAppLinkData(android.content.Intent intent)
        Gets the App Link data for an intent, if there is any. This is the authorized function to check if an intent is AppLink. If null is returned it is not.
        Parameters:
        intent - the incoming intent.
        Returns:
        a bundle containing the App Link data for the intent, or null if none is specified.
      • getAppLinkExtras

        public static android.os.Bundle getAppLinkExtras(android.content.Intent intent)
        Gets the App Link extras for an intent, if there is any.
        Parameters:
        intent - the incoming intent.
        Returns:
        a bundle containing the App Link extras for the intent, or null if none is specified.
      • getTargetUrl

        public static android.net.Uri getTargetUrl(android.content.Intent intent)
        Gets the target URL for an intent, regardless of whether the intent is from an App Link. If the intent is from an App Link, this will be the App Link target. Otherwise, it will be the data Uri from the intent itself.
        Parameters:
        intent - the incoming intent.
        Returns:
        the target URL for the intent.
      • getTargetUrlFromInboundIntent

        public static android.net.Uri getTargetUrlFromInboundIntent(android.content.Context context,
         android.content.Intent intent)
        Gets the target URL for an intent. If the intent is from an App Link, this will be the App Link target. Otherwise, it return null; For app link intent, this function will broadcast APP_LINK_NAVIGATE_IN_EVENT_NAME event.
        Parameters:
        context - the context this function is called within.
        intent - the incoming intent.
        Returns:
        the target URL for the intent if applink intent; null otherwise.

AltStyle によって変換されたページ (->オリジナル) /