Facebook.Unity/Mobile/IOS/IIOSWrapper.cs (100 lines of code) (raw):
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
* copy, modify, and distribute this software in source code or binary form for use
* in connection with the web services and APIs provided by Facebook.
*
* As with any software that integrates with the Facebook platform, your use of
* this software is subject to the Facebook Developer Principles and Policies
* [http://developers.facebook.com/policy/]. This copyright notice shall be
* included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
namespace Facebook.Unity.Mobile.IOS
{
using System.Collections.Generic;
internal interface IIOSWrapper
{
void Init(
string appId,
bool frictionlessRequests,
string urlSuffix,
string unityUserAgentSuffix);
void EnableProfileUpdatesOnAccessTokenChange(bool enable);
void LogInWithReadPermissions(
int requestId,
string scope);
void LogInWithPublishPermissions(
int requestId,
string scope);
void LoginWithTrackingPreference(
int requestId,
string scope,
string tracking,
string nonce);
void LogOut();
void SetPushNotificationsDeviceTokenString(string token);
void SetShareDialogMode(int mode);
void ShareLink(
int requestId,
string contentURL,
string contentTitle,
string contentDescription,
string photoURL);
void FeedShare(
int requestId,
string toId,
string link,
string linkName,
string linkCaption,
string linkDescription,
string picture,
string mediaSource);
void AppRequest(
int requestId,
string message,
string actionType,
string objectId,
string[] to = null,
int toLength = 0,
string filters = "",
string[] excludeIds = null,
int excludeIdsLength = 0,
bool hasMaxRecipients = false,
int maxRecipients = 0,
string data = "",
string title = "");
void FBAppEventsActivateApp();
void LogAppEvent(
string logEvent,
double valueToSum,
int numParams,
string[] paramKeys,
string[] paramVals);
void LogPurchaseAppEvent(
double logPurchase,
string currency,
int numParams,
string[] paramKeys,
string[] paramVals);
void FBAppEventsSetLimitEventUsage(bool limitEventUsage);
void FBAutoLogAppEventsEnabled (bool autoLogAppEventsEnabled);
void FBAdvertiserIDCollectionEnabled(bool advertiserIDCollectionEnabledID);
bool FBAdvertiserTrackingEnabled(bool advertiserTrackingEnabled);
void GetAppLink(int requestId);
void RefreshCurrentAccessToken(int requestId);
string FBSdkVersion();
void FBSetUserID(string userID);
string FBGetUserID();
void SetDataProcessingOptions(string[] options, int country, int state);
void OpenFriendFinderDialog(int requestId);
void CreateGamingContext(int requestId, string playerID);
void SwitchGamingContext(int requestId, string gamingContextID);
void GetCurrentGamingContext(int requestId);
void ChooseGamingContext(
int requestId,
string filter,
int minSize,
int maxSize);
void UploadImageToMediaLibrary(
int requestId,
string caption,
string mediaUri,
bool shouldLaunchMediaDialog);
void UploadVideoToMediaLibrary(
int requestId,
string caption,
string videoUri);
void FetchDeferredAppLink(int requestId);
AuthenticationToken CurrentAuthenticationToken();
Profile CurrentProfile();
}
}