iOS SDK Version

FBSDKDialog

@protocolFBSDKDialog
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
    weakvardelegate:ContextDialogDelegate?{getset}
  • The content object used to create the specific dialog

    Declaration

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

    Declaration

    Objective-C
    -(BOOL)show;
    Swift
    funcshow()->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
    funcvalidate()throws

    Parameters

    Return Value

    YES if the content is valid, otherwise NO.