Beispiel #1
0
 public void OpenUrlContexts(UIScene scene, NSSet <UIOpenUrlContext> urlContexts)
 {
     if (urlContexts.Count >= 1)
     {
         AGCAppLinking.GetSharedInstance().OpenDeepLinkURL(urlContexts.ToArray()[0]?.Url);
     }
 }
Beispiel #2
0
        public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            //Initialize the AppGallery Connect SDK in the system startup method.
            AGCInstance.StartUp();

            //Obtain the singleton object
            AGCAppLinking appLinking = AGCAppLinking.GetSharedInstance();

            //Handle app link receiving
            appLinking.HandleAppLinking(AppLinkReceivedCallback);

            return(true);
        }
Beispiel #3
0
        public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.

            //Initialize the AppGallery Connect SDK in the system startup method.
            AGCInstance.StartUp();

            // Obtain the singleton object.
            AGCAppLinking appLinking = AGCAppLinking.GetSharedInstance();

            // Handle app link receiving.
            appLinking.HandleAppLinking(AppLinkReceivedCallback);

            // If not required for your application you can safely delete this method
            return(true);
        }
Beispiel #4
0
 public void ContinueUserActivity(UIScene scene, NSUserActivity userActivity)
 {
     //Check whether the received link is a link of App Linking and whether the app can process the link
     bool isAppLink = AGCAppLinking.GetSharedInstance().ContinueUserActivity(userActivity);
 }