iOS SDK Version

FBSDKCreateContextContent

  @interface 
 FBSDKCreateContextContent 
 : 
 NSObject 
 < 
 NSSecureCoding 
 , 
  FBSDKValidatable 
 
 > 
 
A model for an instant games createAsync 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 create context dialog

    Declaration

    Objective-C
      - 
     ( 
     nonnull 
     instancetype 
     ) 
     initDialogContentWithPlayerID 
     : 
     ( 
     nonnull 
     NSString 
     * 
     ) 
     playerID 
     ; 
     
    
    Swift
      init 
     ( 
     playerID 
     : 
     String 
     ) 
     
    

    Parameters

  • The ID of the player that is being challenged.

    Declaration

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

    Return Value

    The ID for the player being challenged