FBSDKMessengerShareButton Class Reference
Inherits from | NSObject |
Declared in | FBSDKMessengerButton.h |
Overview
@class FBSDKMessengerShareButton
@abstract Provides a helper method to return a UIButton intended for sharing to Messenger
Class Methods
circularButtonWithStyle:
@abstract Returns a circular UIButton customized for sharing to Messenger of default size
+ (UIButton *)circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style
Parameters
- style
Specifies how the button should look
Declared In
FBSDKMessengerButton.h
circularButtonWithStyle:width:
@abstract Returns a circular UIButton customized for sharing to Messenger
+ (UIButton *)circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style width:(CGFloat)width
Parameters
- style
Specifies how the button should look
- width
The desired frame width (and height) of this button.
Discussion
@discussion This button’s asset is drawn as a vector such that it scales appropriately using the width parameter as a hint. This hint is to prevent button resizing artifacts.
Declared In
FBSDKMessengerButton.h
rectangularButtonWithStyle:
@abstract Returns a rounded rectangular UIButton customized for sharing to Messenger
+ (UIButton *)rectangularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style
Parameters
- style
Specifies how the button should look
Discussion
@discussion This button can be resized after creation
There is 1 string in the implemention of this button which needs to be translated by your app:
NSLocalizedString(@“Send”, @“Button label for sending a message”)
Declared In
FBSDKMessengerButton.h