FBSDKMessengerShareButton Class Reference
Inherits from | NSObject |
Declared in | FBSDKMessengerButton.h |
Class Methods
circularButtonWithStyle:
Returns a circular UIButton customized for sharing to Messenger of default size
+ (UIButton *)circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style
Discussion
- Parameter style: Specifies how the button should look
Declared In
FBSDKMessengerButton.h
circularButtonWithStyle:width:
Returns a circular UIButton customized for sharing to Messenger
+ (UIButton *)circularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style width:(CGFloat)width
Discussion
- Parameter style: Specifies how the button should look
- Parameter width: The desired frame width (and height) of this button.
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:
Returns a rounded rectangular UIButton customized for sharing to Messenger
+ (UIButton *)rectangularButtonWithStyle:(FBSDKMessengerShareButtonStyle)style
Discussion
- Parameter style: Specifies how the button should look
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