public override void Init( string appId, bool cookie, bool logging, bool status, bool xfbml, string channelUrl, string authResponse, bool frictionlessRequests, HideUnityDelegate hideUnityDelegate, InitDelegate onInitComplete) { base.Init( appId, cookie, logging, status, xfbml, channelUrl, authResponse, frictionlessRequests, hideUnityDelegate, onInitComplete); IOSFacebook.IOSInit( appId, cookie, logging, status, frictionlessRequests, FacebookSettings.IosURLSuffix, Constants.UnitySDKUserAgentSuffixLegacy); }
public override void GameGroupCreate( string name, string description, string privacy, FacebookDelegate <IGroupCreateResult> callback) { IOSFacebook.IOSCreateGameGroup(this.AddCallback(callback), name, description, privacy); }
public override void AppEventsLogPurchase( float logPurchase, string currency, Dictionary <string, object> parameters) { NativeDict dict = MarshallDict(parameters); IOSFacebook.IOSFBAppEventsLogPurchase(logPurchase, currency, dict.NumEntries, dict.Keys, dict.Values); }
public override void AppEventsLogEvent(string logEvent, float?valueToSum, Dictionary <string, object> parameters) { IOSFacebook.NativeDict nativeDict = IOSFacebook.MarshallDict(parameters); if (valueToSum.HasValue) { this.iosWrapper.LogAppEvent(logEvent, (double)valueToSum.Value, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values); } else { this.iosWrapper.LogAppEvent(logEvent, 0.0, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values); } }
public override void ShareLink( Uri contentURL, string contentTitle, string contentDescription, Uri photoURL, FacebookDelegate <IShareResult> callback) { IOSFacebook.IOSShareLink( this.AddCallback(callback), contentURL.AbsoluteUrlOrEmptyString(), contentTitle, contentDescription, photoURL.AbsoluteUrlOrEmptyString()); }
public override void AppEventsLogEvent( string logEvent, float?valueToSum, Dictionary <string, object> parameters) { NativeDict dict = MarshallDict(parameters); if (valueToSum.HasValue) { IOSFacebook.IOSFBAppEventsLogEvent(logEvent, valueToSum.Value, dict.NumEntries, dict.Keys, dict.Values); } else { IOSFacebook.IOSFBAppEventsLogEvent(logEvent, 0.0, dict.NumEntries, dict.Keys, dict.Values); } }
public override void AppRequest( string message, OGActionType?actionType, string objectId, IEnumerable <string> to, IEnumerable <object> filters, IEnumerable <string> excludeIds, int?maxRecipients, string data, string title, FacebookDelegate <IAppRequestResult> callback) { this.ValidateAppRequestArgs( message, actionType, objectId, to, filters, excludeIds, maxRecipients, data, title, callback); string mobileFilter = null; if (filters != null && filters.Any()) { mobileFilter = filters.First() as string; } IOSFacebook.IOSAppRequest( this.AddCallback(callback), message, (actionType != null) ? actionType.ToString() : string.Empty, objectId != null ? objectId : string.Empty, to != null ? to.ToArray() : null, to != null ? to.Count() : 0, mobileFilter != null ? mobileFilter : string.Empty, excludeIds != null ? excludeIds.ToArray() : null, excludeIds != null ? excludeIds.Count() : 0, maxRecipients.HasValue, maxRecipients.HasValue ? maxRecipients.Value : 0, data, title); }
public override void AppInvite( Uri appLinkUrl, Uri previewImageUrl, FacebookDelegate <IAppInviteResult> callback) { string appLinkUrlStr = string.Empty; string previewImageUrlStr = string.Empty; if (appLinkUrl != null && !string.IsNullOrEmpty(appLinkUrl.AbsoluteUri)) { appLinkUrlStr = appLinkUrl.AbsoluteUri; } if (previewImageUrl != null && !string.IsNullOrEmpty(previewImageUrl.AbsoluteUri)) { previewImageUrlStr = previewImageUrl.AbsoluteUri; } IOSFacebook.IOSAppInvite( this.AddCallback(callback), appLinkUrlStr, previewImageUrlStr); }
public override void Init( string appId, bool cookie, bool logging, bool status, bool xfbml, string channelUrl, string authResponse, bool frictionlessRequests, HideUnityDelegate hideUnityDelegate, InitDelegate onInitComplete) { base.Init( appId, cookie, logging, status, xfbml, channelUrl, authResponse, frictionlessRequests, hideUnityDelegate, onInitComplete); string unityUserAgentSuffix = string.Format( "Unity.{0}", Facebook.Unity.FacebookSdkVersion.Build); IOSFacebook.IOSInit( appId, cookie, logging, status, frictionlessRequests, FacebookSettings.IosURLSuffix, unityUserAgentSuffix); }
public override void FeedShare( string toId, Uri link, string linkName, string linkCaption, string linkDescription, Uri picture, string mediaSource, FacebookDelegate <IShareResult> callback) { string linkStr = link != null?link.ToString() : string.Empty; string pictureStr = picture != null?picture.ToString() : string.Empty; IOSFacebook.IOSFeedShare( this.AddCallback(callback), toId, linkStr, linkName, linkCaption, linkDescription, pictureStr, mediaSource); }
protected override void SetShareDialogMode(ShareDialogMode mode) { IOSFacebook.IOSSetShareDialogMode((int)mode); }
public override void GetAppLink( FacebookDelegate <IAppLinkResult> callback) { IOSFacebook.IOSGetAppLink(System.Convert.ToInt32(CallbackManager.AddFacebookDelegate(callback))); }
public override void FetchDeferredAppLink(FacebookDelegate <IAppLinkResult> callback) { IOSFacebook.IOSFetchDeferredAppLink(this.AddCallback(callback)); }
public override void ActivateApp(string appId) { IOSFacebook.IOSFBSettingsActivateApp(appId); }
public override void GameGroupJoin( string id, FacebookDelegate <IGroupJoinResult> callback) { IOSFacebook.IOSJoinGameGroup(System.Convert.ToInt32(CallbackManager.AddFacebookDelegate(callback)), id); }
public override void LogOut() { base.LogOut(); IOSFacebook.IOSLogOut(); }
public override void LogInWithPublishPermissions( IEnumerable <string> permissions, FacebookDelegate <ILoginResult> callback) { IOSFacebook.IOSLogInWithPublishPermissions(this.AddCallback(callback), permissions.ToCommaSeparateList()); }
public override void AppEventsLogPurchase(float logPurchase, string currency, Dictionary <string, object> parameters) { IOSFacebook.NativeDict nativeDict = IOSFacebook.MarshallDict(parameters); this.iosWrapper.LogPurchaseAppEvent((double)logPurchase, currency, nativeDict.NumEntries, nativeDict.Keys, nativeDict.Values); }