public void OpenUrlContexts(UIScene scene, NSSet <UIOpenUrlContext> urlContexts) { if (urlContexts.Count >= 1) { AGCAppLinking.GetSharedInstance().OpenDeepLinkURL(urlContexts.ToArray()[0]?.Url); } }
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); }
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); }
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); }