public override void ShareLink(IBranchLinkShareInterface callback, BranchUniversalObject universalObject, BranchLinkProperties linkProperties, string message) { IOSNativeBranch.BranchUniversalObject buo = BranchIOSUtils.ToNativeUniversalObject(universalObject); IOSNativeBranch.BranchLinkProperties blp = BranchIOSUtils.ToNativeLinkProperties(linkProperties); UIKit.UIWindow window = UIKit.UIApplication.SharedApplication.KeyWindow; buo.ShowShareSheetWithLinkProperties(blp, message, window.RootViewController, delegate(string url, bool isShared) {}); }
public override void GetShortURL(IBranchUrlInterface callback, BranchUniversalObject universalObject, BranchLinkProperties linkProperties) { BranchUrlListener obj = new BranchUrlListener(callback); callbacksList.Add(obj as Object); IOSNativeBranch.BranchUniversalObject buo = BranchIOSUtils.ToNativeUniversalObject(universalObject); IOSNativeBranch.BranchLinkProperties blp = BranchIOSUtils.ToNativeLinkProperties(linkProperties); buo.GetShortUrlWithLinkProperties(blp, obj.GetShortUrlCallback); }