iOS SDK Version

FBSDKSwitchContextContent

  @interface 
 FBSDKSwitchContextContent 
 : 
 NSObject 
 < 
 NSSecureCoding 
 , 
  FBSDKValidatable 
 
 > 
 
A model for an instant games switchAsync cross play request.
  • Unavailable
    Undocumented

    Declaration

    Objective-C
      - 
     ( 
     instancetype 
     ) 
     init 
     NS_UNAVAILABLE 
     ; 
     
    
  • Unavailable
    Undocumented

    Declaration

    Objective-C
      + 
     ( 
     instancetype 
     ) 
     new 
     NS_UNAVAILABLE 
     ; 
     
    
  • Builds a content object that will be use to display a switch context dialog

    Declaration

    Objective-C
      - 
     ( 
     nonnull 
     instancetype 
     ) 
     initDialogContentWithContextID 
     : 
     ( 
     nonnull 
     NSString 
     * 
     ) 
     contextID 
     ; 
     
    
    Swift
      init 
     ( 
     contextID 
     : 
     String 
     ) 
     
    

    Parameters

  • The context token of the existing context for which this request is being made.

    Declaration

    Objective-C
      @property 
     ( 
     nonatomic 
     , 
     copy 
     , 
     readwrite 
     ) 
     NSString 
     * 
     _Nonnull 
     contextTokenID 
     ; 
     
    
    Swift
      var 
     contextTokenID 
     : 
     String 
     { 
     get 
     set 
     } 
     
    

    Return Value

    The context token of the existing context