FBSDKAppInviteDialog Class Reference
Inherits from | NSObject |
Declared in | FBSDKAppInviteDialog.h |
Properties
content
The content for app invite.
@property (nonatomic, copy) FBSDKAppInviteContent *content
Declared In
FBSDKAppInviteDialog.h
Class Methods
showFromViewController:withContent:delegate:
Convenience method to show a FBSDKAppInviteDialog - Parameter viewController: A UIViewController to present the dialog from. - Parameter content: The content for the app invite. - Parameter delegate: The receiver’s delegate.
+ (instancetype)showFromViewController:(UIViewController *)viewController withContent:(FBSDKAppInviteContent *)content delegate:(id<FBSDKAppInviteDialogDelegate>)delegate
Declared In
FBSDKAppInviteDialog.h
Instance Methods
canShow
A Boolean value that indicates whether the receiver can initiate an app invite.
- (BOOL)canShow
Discussion
May return NO if the appropriate Facebook app is not installed and is required or an access token is required but not available. This method does not validate the content on the receiver, so this can be checked before building up the content.
- See:validateWithError:
- Returns: YES if the receiver can show the dialog, otherwise NO.
Declared In
FBSDKAppInviteDialog.h
show
Begins the app invite from the receiver. - Returns: YES if the receiver was able to show the dialog, otherwise NO.
- (BOOL)show
Declared In
FBSDKAppInviteDialog.h
validateWithError:
Validates the content on the receiver. - Parameter errorRef: If an error occurs, upon return contains an NSError object that describes the problem. - Returns: YES if the content is valid, otherwise NO.
- (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef
Declared In
FBSDKAppInviteDialog.h