iOS SDK Version

FBSDKDialog

  @protocol 
 FBSDKDialog 
 
The protocol sdk dialogs must conform to and implement all the following methods.
  • The receiver’s delegate or nil if it doesn’t have a delegate.

    Declaration

    Objective-C
      @property 
     ( 
     nonatomic 
     , 
     weak 
     , 
     readwrite 
     , 
     nullable 
     ) 
     id 
     < 
      FBSDKContextDialogDelegate 
     
     > 
     delegate 
     ; 
     
    
    Swift
      weak 
     var 
     delegate 
     : 
     ContextDialogDelegate 
     ? 
     { 
     get 
     set 
     } 
     
    
  • The content object used to create the specific dialog

    Declaration

    Objective-C
      @property 
     ( 
     nonatomic 
     , 
     copy 
     , 
     readwrite 
     , 
     nullable 
     ) 
     id 
     < 
      FBSDKValidatable 
     
     > 
     dialogContent 
     ; 
     
    
    Swift
      @NSCopying 
     var 
     dialogContent 
     : 
     ValidatableProtocol 
     ? 
     { 
     get 
     set 
     } 
     
    
  • Begins to show the specfic dialog

    Declaration

    Objective-C
      - 
     ( 
     BOOL 
     ) 
     show 
     ; 
     
    
    Swift
      func 
     show 
     () 
     -> 
     Bool 
     
    

    Return Value

    YES if the receiver was able to show the dialog, otherwise NO.
  • Validates the content for the dialog

    Declaration

    Objective-C
      - 
     ( 
     BOOL 
     ) 
     validateWithError 
     :( 
     NSError 
     * 
     _Nullable 
     * 
     _Nullable 
     ) 
     errorRef 
     ; 
     
    
    Swift
      func 
     validate 
     () 
     throws 
     
    

    Parameters

    Return Value

    YES if the content is valid, otherwise NO.