File was renamed from frameworks/FBSDKShareKit.framework/Headers/FBSDKShareMessengerActionButton.h |
| | |
| | | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| | | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "TargetConditionals.h" |
| | | |
| | | #import <FBSDKCoreKit/FBSDKCopying.h> |
| | | #import <FBSDKShareKit/FBSDKShareConstants.h> |
| | | #if !TARGET_OS_TV |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | /** |
| | | A base interface for Messenger share action buttons. |
| | | Represent a referral code used in the referral process |
| | | */ |
| | | DEPRECATED_FOR_MESSENGER |
| | | NS_SWIFT_NAME(ShareMessengerActionButton) |
| | | @protocol FBSDKShareMessengerActionButton <FBSDKCopying, NSSecureCoding> |
| | | NS_SWIFT_NAME(ReferralCode) |
| | | @interface FBSDKReferralCode : NSObject |
| | | |
| | | - (instancetype)init NS_UNAVAILABLE; |
| | | + (instancetype)new NS_UNAVAILABLE; |
| | | |
| | | /** |
| | | The title displayed to the user for the button. |
| | | @return The title for the button. |
| | | The string value of the referral code |
| | | */ |
| | | @property (nonatomic, copy) NSString *title; |
| | | @property NSString *value; |
| | | |
| | | /** |
| | | Initializes a new instance if the referral code is valid. Otherwise returns nil. |
| | | A code is valid if it is non-empty and contains only alphanumeric characters. |
| | | @param string the raw string referral code |
| | | */ |
| | | + (nullable instancetype)initWithString:(NSString *)string; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | | |
| | | #endif |