Пример #1
0
 /// <summary>
 /// Show the app invite dialog.
 /// </summary>
 /// <param name="appLinkUrl">
 ///     App Link for what should be opened when the recipient clicks on the
 ///     install/play button on the app invite page.
 /// </param>
 /// <param name="previewImageUrl">A url to an image to be used in the invite.</param>
 /// <param name="callback">A callback for when the dialog completes</para>
 public static void AppInvite(
     Uri appLinkUrl,
     Uri previewImageUrl = null,
     FacebookDelegate <IAppInviteResult> callback = null)
 {
     MobileFacebookImpl.AppInvite(appLinkUrl, previewImageUrl, callback);
 }
Пример #2
0
 public static void FetchDeferredAppLinkData([Optional, DefaultParameterValue(null)] FacebookDelegate <IAppLinkResult> callback)
 {
     if (callback != null)
     {
         MobileFacebookImpl.FetchDeferredAppLink(callback);
     }
 }
Пример #3
0
 /// <summary>
 /// Uploads a video to the player's Gaming Media Library
 /// </summary>
 /// <param name="caption">Title for this video in the Media Library</param>
 /// <param name="videoUri">Path to the video file in the local filesystem. On Android
 /// this can also be a content:// URI</param>
 /// <param name="callback">A callback for when the video upload is complete.</param>
 /// <remarks>Note that when the callback is fired, the video will still need to be
 /// encoded before it is available in the Media Library.</remarks>
 public static void UploadVideoToMediaLibrary(
     string caption,
     Uri videoUri,
     FacebookDelegate <IMediaUploadResult> callback)
 {
     MobileFacebookImpl.UploadVideoToMediaLibrary(caption, videoUri, callback);
 }
Пример #4
0
 /// <summary>
 /// Uploads an Image to the player's Gaming Media Library
 /// </summary>
 /// <param name="caption">Title for this image in the Media Library</param>
 /// <param name="imageUri">Path to the image file in the local filesystem. On Android
 /// this can also be a content:// URI</param>
 /// <param name="shouldLaunchMediaDialog">If we should open the Media Dialog to allow
 /// the player to Share this image right away.</param>
 /// <param name="callback">A callback for when the image upload is complete.</param>
 public static void UploadImageToMediaLibrary(
     string caption,
     Uri imageUri,
     bool shouldLaunchMediaDialog,
     FacebookDelegate <IMediaUploadResult> callback)
 {
     MobileFacebookImpl.UploadImageToMediaLibrary(caption, imageUri, shouldLaunchMediaDialog, callback);
 }
 public static void CreateTournament(
     int initialScore,
     string title,
     string imageBase64DataUrl,
     Dictionary <string, string> data,
     FacebookDelegate <ITournamentResult> callback)
 {
     MobileFacebookImpl.CreateTournament(initialScore, title, imageBase64DataUrl, data, callback);
 }
 public static void ScheduleAppToUserNotification(
     string title,
     string body,
     Uri media,
     int timeInterval,
     string payload,
     FacebookDelegate <IScheduleAppToUserNotificationResult> callback)
 {
     MobileFacebookImpl.ScheduleAppToUserNotification(title, body, media, timeInterval, payload, callback);
 }
 public static void Purchase(string productID, FacebookDelegate <IPurchaseResult> callback, string developerPayload = "")
 {
     MobileFacebookImpl.Purchase(productID, callback, developerPayload);
 }
Пример #8
0
 /// <summary>
 /// Opens the Friend Finder Dialog
 /// </summary>
 /// <param name="callback">A callback for when the Dialog is closed.</param>
 public static void OpenFriendFinderDialog(FacebookDelegate <IGamingServicesFriendFinderResult> callback)
 {
     MobileFacebookImpl.OpenFriendFinderDialog(callback);
 }
 public static void GetCatalog(FacebookDelegate <ICatalogResult> callback)
 {
     MobileFacebookImpl.GetCatalog(callback);
 }
 public static void GetPurchases(FacebookDelegate <IPurchasesResult> callback)
 {
     MobileFacebookImpl.GetPurchases(callback);
 }
 public static void PostSessionScore(int score, FacebookDelegate <ISessionScoreResult> callback)
 {
     MobileFacebookImpl.PostSessionScore(score, callback);
 }
 public static void OnIAPReady(FacebookDelegate <IIAPReadyResult> callback)
 {
     MobileFacebookImpl.OnIAPReady(callback);
 }
 public static void ShowRewardedVideo(string placementID, FacebookDelegate <IRewardedVideoResult> callback)
 {
     MobileFacebookImpl.ShowRewardedVideo(placementID, callback);
 }
 public static void OpenAppStore(FacebookDelegate <IOpenAppStoreResult> callback)
 {
     MobileFacebookImpl.OpenAppStore(callback);
 }
 public static void GetTournament(FacebookDelegate <ITournamentResult> callback)
 {
     MobileFacebookImpl.GetTournament(callback);
 }
 public static void ShowInterstitialAd(string placementID, FacebookDelegate <IInterstitialAdResult> callback)
 {
     MobileFacebookImpl.ShowInterstitialAd(placementID, callback);
 }
 public static void InitCloudGame(
     FacebookDelegate <IInitCloudGameResult> callback)
 {
     MobileFacebookImpl.InitCloudGame(callback);
 }
 public static void ConsumePurchase(string purchaseToken, FacebookDelegate <IConsumePurchaseResult> callback)
 {
     MobileFacebookImpl.ConsumePurchase(purchaseToken, callback);
 }
 public static void ShareTournament(Dictionary <string, string> data, FacebookDelegate <ITournamentResult> callback)
 {
     MobileFacebookImpl.ShareTournament(data, callback);
 }
Пример #20
0
 public static void RefreshCurrentAccessToken([Optional, DefaultParameterValue(null)] FacebookDelegate <IAccessTokenRefreshResult> callback)
 {
     MobileFacebookImpl.RefreshCurrentAccessToken(callback);
 }
 public static void GetPayload(FacebookDelegate <IPayloadResult> callback)
 {
     MobileFacebookImpl.GetPayload(callback);
 }
Пример #22
0
 public static void AppInvite(Uri appLinkUrl, [Optional, DefaultParameterValue(null)] Uri previewImageUrl, [Optional, DefaultParameterValue(null)] FacebookDelegate <IAppInviteResult> callback)
 {
     MobileFacebookImpl.AppInvite(appLinkUrl, previewImageUrl, callback);
 }
 public static void PostTournamentScore(int score, FacebookDelegate <ITournamentScoreResult> callback)
 {
     MobileFacebookImpl.PostTournamentScore(score, callback);
 }