Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[facebookios] Updated binding to version 4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed Oct 14, 2015
1 parent 3cf4f5a commit 34b7362
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions facebookios/binding/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface AccessTokenDidChangeEventArgs
}

// @interface FBSDKAccessToken : NSObject <FBSDKCopying, NSSecureCoding>
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "FBSDKAccessToken")]
interface AccessToken : Copying, INSSecureCoding
{
Expand Down Expand Up @@ -68,6 +69,7 @@ interface AccessToken : Copying, INSSecureCoding
string UserID { get; }

// -(instancetype)initWithTokenString:(NSString *)tokenString permissions:(NSArray *)permissions declinedPermissions:(NSArray *)declinedPermissions appID:(NSString *)appID userID:(NSString *)userID expirationDate:(NSDate *)expirationDate refreshDate:(NSDate *)refreshDate __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithTokenString:permissions:declinedPermissions:appID:userID:expirationDate:refreshDate:")]
IntPtr Constructor (string tokenString, [NullAllowed] string[] permissions, [NullAllowed] string[] declinedPermissions, string appID, string userID, [NullAllowed] NSDate expirationDate, [NullAllowed] NSDate refreshDate);

Expand Down Expand Up @@ -473,6 +475,7 @@ interface GraphRequest
IntPtr Constructor (string graphPath, [NullAllowed] NSDictionary parameters, [NullAllowed] string httpMethod);

// -(instancetype)initWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(NSString *)tokenString version:(NSString *)version HTTPMethod:(NSString *)HTTPMethod __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithGraphPath:parameters:tokenString:version:HTTPMethod:")]
IntPtr Constructor (string graphPath, [NullAllowed] NSDictionary parameters, [NullAllowed] string tokenString, [NullAllowed] string version, [NullAllowed] string httpMethod);

Expand Down Expand Up @@ -569,6 +572,11 @@ interface GraphRequestConnection
[Export ("URLResponse", ArgumentSemantic.Retain)]
NSHttpUrlResponse UrlResponse { get; }

// + (void)setDefaultConnectionTimeout:(NSTimeInterval)defaultConnectionTimeout;
[Static]
[Export ("setDefaultConnectionTimeout:")]
void SetDefaultConnectionTimeout (double defaultConnectionTimeout);

// -(void)addRequest:(FBSDKGraphRequest *)request completionHandler:(FBSDKGraphRequestHandler)handler;
[Export ("addRequest:completionHandler:")]
void AddRequest (GraphRequest request, [NullAllowed] GraphRequestHandler handler);
Expand Down Expand Up @@ -604,6 +612,7 @@ interface GraphRequestConnection
interface GraphRequestDataAttachment
{
// -(instancetype)initWithData:(NSData *)data filename:(NSString *)filename contentType:(NSString *)contentType __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithData:filename:contentType:")]
IntPtr Constructor ([NullAllowed] NSData data, string filename, string contentType);

Expand Down Expand Up @@ -661,6 +670,7 @@ interface Profile : INSCopying, INSSecureCoding
NSString NewProfileKey { get; }

// -(instancetype)initWithUserID:(NSString *)userID firstName:(NSString *)firstName middleName:(NSString *)middleName lastName:(NSString *)lastName name:(NSString *)name linkURL:(NSURL *)linkURL refreshDate:(NSDate *)refreshDate __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithUserID:firstName:middleName:lastName:name:linkURL:refreshDate:")]
IntPtr Constructor (string userID, string firstName, string middleName, string lastName, string name, [NullAllowed] NSUrl linkUrl, [NullAllowed] NSDate refreshDate);

Expand Down Expand Up @@ -703,7 +713,12 @@ interface Profile : INSCopying, INSSecureCoding
[Export ("enableUpdatesOnAccessTokenChange:")]
void EnableUpdatesOnAccessTokenChange (bool enable);

// - (NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size;
[Export ("imageURLForPictureMode:size:")]
NSUrl ImageUrl (ProfilePictureMode mode, CGSize size);

// -(NSString *)imagePathForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size;
[Obsolete ("Use ImageUrl method instead")]
[Export ("imagePathForPictureMode:size:")]
string ImagePath (ProfilePictureMode mode, CGSize size);

Expand Down Expand Up @@ -1118,6 +1133,7 @@ interface LoginManagerLoginResult
NSSet DeclinedPermissions { get; set; }

// -(instancetype)initWithToken:(FBSDKAccessToken *)token isCancelled:(BOOL)isCancelled grantedPermissions:(NSSet *)grantedPermissions declinedPermissions:(NSSet *)declinedPermissions __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithToken:isCancelled:grantedPermissions:declinedPermissions:")]
IntPtr Constructor ([NullAllowed] CoreKit.AccessToken token, bool isCancelled, [NullAllowed] NSSet grantedPermissions, [NullAllowed] NSSet declinedPermissions);
}
Expand Down
4 changes: 2 additions & 2 deletions facebookios/binding/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MONOXBUILD=/Library/Frameworks/Mono.framework/Commands/xbuild
DATE=20150910
VERSION=4.6
DATE=20151007
VERSION=4.7

all: Facebook-Unified.dll

Expand Down
2 changes: 1 addition & 1 deletion facebookios/binding/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion ("4.6.0")]
[assembly: AssemblyVersion ("4.7.0")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down

0 comments on commit 34b7362

Please sign in to comment.