iOS SDK Version

Type Definitions

The following type definitions are available globally.
  • Describes the callback for loadCurrentProfileWithCompletion.

    Declaration

    Objective-C
    typedefvoid(^FBSDKProfileBlock)(FBSDKProfile*_Nullable,NSError*_Nullable)
    Swift
    typealiasProfileBlock=(Profile?,Error?)->Void

    Parameters

    profile
    the FBSDKProfile
    error
    the error during the request, if any
  • typedef for FBSDKAppEventName

    Declaration

    Objective-C
    typedefNSString*constFBSDKLoggingBehavior
    Swift
    structLoggingBehavior:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • Callback block for returning an array of FBSDKAccessToken instances (and possibly NSNull instances); or an error.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAccessTokensBlock)(NSArray<FBSDKAccessToken*>*_Nonnull,NSError*_Nullable)
    Swift
    typealiasAccessTokensBlock=([FBSDKAccessToken],Error?)->Void
  • typedef for FBSDKAppEventName

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventName
    Swift
    structName:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventParameterName

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterName
    Swift
    structParameterName:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventParameterProduct

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterProduct
    Swift
    structParameterProduct:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventParameterValue

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterValue
    Swift
    structParameterValue:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventUserDataType

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventUserDataType
    Swift
    structUserDataType:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType,NSError*_Nullable)
    Swift
    typealiasAppLinkNavigationBlock=(AppLinkNavigation.`Type`,Error?)->Void

    Parameters

    navType
    the FBSDKAppLink representing the deferred App Link
    error
    the error during the request, if any
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinksBlock)(NSDictionary<NSURL*,FBSDKAppLink*>*_Nonnull,NSError*_Nullable)
    Swift
    typealiasAppLinksBlock=([URL:FBSDKAppLink],Error?)->Void

    Parameters

    appLinks
    the FBSDKAppLinks representing the deferred App Links
    error
    the error during the request, if any
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinkBlock)(FBSDKAppLink*_Nullable,NSError*_Nullable)
    Swift
    typealiasAppLinkBlock=(FBSDKAppLink?,Error?)->Void

    Parameters

    appLink
    the FBSDKAppLink representing the deferred App Link
    error
    the error during the request, if any
  • Describes the callback for fetchDeferredAppLink.
    The url may also have a fb_click_time_utc query parameter that represents when the click occurred that caused the deferred App Link to be created.

    Declaration

    Objective-C
    typedefvoid(^FBSDKURLBlock)(NSURL*_Nullable,NSError*_Nullable)
    Swift
    typealiasURLBlock=(URL?,Error?)->Void

    Parameters

    url
    the url representing the deferred App Link
    error
    the error during the request, if any
  • Success Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKCodeBlock)(void)
    Swift
    typealiasCodeBlock=()->Void
  • Error Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKErrorBlock)(NSError*_Nullable)
    Swift
    typealiasErrorBlock=(Error?)->Void
  • Success Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKSuccessBlock)(BOOL,NSError*_Nullable)
    Swift
    typealiasSuccessBlock=(Bool,Error?)->Void
  • typedef for FBSDKHTTPMethod

    Declaration

    Objective-C
    typedefNSString*constFBSDKHTTPMethod
    Swift
    structHTTPMethod:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • FBSDKGraphRequestBlock
    A block that is passed to addRequest to register for a callback with the results of that request once the connection completes.
    Pass a block of this type when calling addRequest. This will be called once the request completes. The call occurs on the UI thread.

    Declaration

    Objective-C
    typedefvoid(^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection*_Nullable,id_Nullable,NSError*_Nullable)
    Swift
    typealiasGraphRequestBlock=(GraphRequestConnection?,Any?,Error?)->Void

    Parameters

    connection
    The FBSDKGraphRequestConnection that sent the request.
    result
    The result of the request. This is a translation of JSON data to NSDictionary and NSArray objects. This is nil if there was an error.
    error
    The NSError representing any error that occurred.