partial void CreateAppLinking(UIKit.UIButton sender) { Console.WriteLine("CreateAppLinking"); appLinkingComponent = new AGCAppLinkingComponents { // Set URL Prefix UriPrefix = "<your_AppLinking_URL_Prefix>", // Set Deep Link DeepLink = "https://developer.huawei.com/consumer/cn/", //Set the link preview type. If this method is not called, the preview page with app information is displayed by default. PreviewType = AGCLinkingPreviewType.AppInfo }; // Set Android app parameters. (Optional) appLinkingComponent.AndroidDeepLink = ("androidlink://developer.huawei.com/consumer/cn/"); appLinkingComponent.AndroidPackageName = "<your_Android_packageName>"; appLinkingComponent.AndroidOpenType = AGCLinkingAndroidOpenType.AppGallery; // Set iOS app parameters. (Optional) appLinkingComponent.IosBundleId = "<your_iOS_BundleID>"; appLinkingComponent.IosDeepLink = "ioslink://developer.huawei.com/consumer/cn/"; // Create AppLinking CreateShortAppLink(); CreateLongAppLink(); }
private void CreateAppLink() { appLinkingComponent = new AGCAppLinkingComponents { // Set URL Prefix UriPrefix = "URI_PREFIX", // Set Deep Link DeepLink = "https://open.iosdemoapp.com", //Set the link preview type. If this method is not called, the preview page with app information is displayed by default. PreviewType = AGCLinkingPreviewType.AppInfo }; }
public ResultViewController(AGCAppLinkingComponents appLinkingComponent) : base("ResultViewController", null) { this.appLinkingComponent = appLinkingComponent; }