| | |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | #import <FBSDKCoreKit/FBSDKMacros.h> |
| | | |
| | | #import <FBSDKShareKit/FBSDKLikeObjectType.h> |
| | | #import <FBSDKShareKit/FBSDKLiking.h> |
| | | |
| | | /*! |
| | | @typedef NS_ENUM (NSUInteger, FBSDKLikeControlAuxiliaryPosition) |
| | | /** |
| | | NS_ENUM (NSUInteger, FBSDKLikeControlAuxiliaryPosition) |
| | | |
| | | @abstract Specifies the position of the auxiliary view relative to the like button. |
| | | Specifies the position of the auxiliary view relative to the like button. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, FBSDKLikeControlAuxiliaryPosition) |
| | | { |
| | | /*! The auxiliary view is inline with the like button. */ |
| | | /** The auxiliary view is inline with the like button. */ |
| | | FBSDKLikeControlAuxiliaryPositionInline, |
| | | /*! The auxiliary view is above the like button. */ |
| | | /** The auxiliary view is above the like button. */ |
| | | FBSDKLikeControlAuxiliaryPositionTop, |
| | | /*! The auxiliary view is below the like button. */ |
| | | /** The auxiliary view is below the like button. */ |
| | | FBSDKLikeControlAuxiliaryPositionBottom, |
| | | }; |
| | | |
| | | /*! |
| | | @abstract Converts an FBSDKLikeControlAuxiliaryPosition to an NSString. |
| | | /** |
| | | Converts an FBSDKLikeControlAuxiliaryPosition to an NSString. |
| | | */ |
| | | FBSDK_EXTERN NSString *NSStringFromFBSDKLikeControlAuxiliaryPosition(FBSDKLikeControlAuxiliaryPosition auxiliaryPosition); |
| | | FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlAuxiliaryPosition(FBSDKLikeControlAuxiliaryPosition auxiliaryPosition); |
| | | |
| | | /*! |
| | | @typedef NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment) |
| | | /** |
| | | NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment) |
| | | |
| | | @abstract Specifies the horizontal alignment for FBSDKLikeControlStyleStandard with |
| | | Specifies the horizontal alignment for FBSDKLikeControlStyleStandard with |
| | | FBSDKLikeControlAuxiliaryPositionTop or FBSDKLikeControlAuxiliaryPositionBottom. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, FBSDKLikeControlHorizontalAlignment) |
| | | { |
| | | /*! The subviews are left aligned. */ |
| | | /** The subviews are left aligned. */ |
| | | FBSDKLikeControlHorizontalAlignmentLeft, |
| | | /*! The subviews are center aligned. */ |
| | | /** The subviews are center aligned. */ |
| | | FBSDKLikeControlHorizontalAlignmentCenter, |
| | | /*! The subviews are right aligned. */ |
| | | /** The subviews are right aligned. */ |
| | | FBSDKLikeControlHorizontalAlignmentRight, |
| | | }; |
| | | |
| | | /*! |
| | | @abstract Converts an FBSDKLikeControlHorizontalAlignment to an NSString. |
| | | /** |
| | | Converts an FBSDKLikeControlHorizontalAlignment to an NSString. |
| | | */ |
| | | FBSDK_EXTERN NSString *NSStringFromFBSDKLikeControlHorizontalAlignment(FBSDKLikeControlHorizontalAlignment horizontalAlignment); |
| | | FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlHorizontalAlignment(FBSDKLikeControlHorizontalAlignment horizontalAlignment); |
| | | |
| | | /*! |
| | | @typedef NS_ENUM (NSUInteger, FBSDKLikeControlStyle) |
| | | /** |
| | | NS_ENUM (NSUInteger, FBSDKLikeControlStyle) |
| | | |
| | | @abstract Specifies the style of a like control. |
| | | Specifies the style of a like control. |
| | | */ |
| | | typedef NS_ENUM(NSUInteger, FBSDKLikeControlStyle) |
| | | { |
| | | /*! Displays the button and the social sentence. */ |
| | | /** Displays the button and the social sentence. */ |
| | | FBSDKLikeControlStyleStandard = 0, |
| | | /*! Displays the button and a box that contains the like count. */ |
| | | /** Displays the button and a box that contains the like count. */ |
| | | FBSDKLikeControlStyleBoxCount, |
| | | }; |
| | | |
| | | /*! |
| | | @abstract Converts an FBSDKLikeControlStyle to an NSString. |
| | | /** |
| | | Converts an FBSDKLikeControlStyle to an NSString. |
| | | */ |
| | | FBSDK_EXTERN NSString *NSStringFromFBSDKLikeControlStyle(FBSDKLikeControlStyle style); |
| | | FOUNDATION_EXPORT NSString *NSStringFromFBSDKLikeControlStyle(FBSDKLikeControlStyle style); |
| | | |
| | | /*! |
| | | @class FBSDKLikeControl |
| | | /** |
| | | Warning: This class is deprecated. |
| | | UI control to like an object in the Facebook graph. |
| | | |
| | | @abstract UI control to like an object in the Facebook graph. |
| | | |
| | | @discussion Taps on the like button within this control will invoke an API call to the Facebook app through a |
| | | Taps on the like button within this control will invoke an API call to the Facebook app through a |
| | | fast-app-switch that allows the user to like the object. Upon return to the calling app, the view will update |
| | | with the new state and send actions for the UIControlEventValueChanged event. |
| | | */ |
| | | DEPRECATED_MSG_ATTRIBUTE("This is no longer available") |
| | | @interface FBSDKLikeControl : UIControl <FBSDKLiking> |
| | | |
| | | /*! |
| | | @abstract The foreground color to use for the content of the receiver. |
| | | /** |
| | | The foreground color to use for the content of the receiver. |
| | | */ |
| | | @property (nonatomic, strong) UIColor *foregroundColor; |
| | | |
| | | /*! |
| | | @abstract The position for the auxiliary view for the receiver. |
| | | /** |
| | | The position for the auxiliary view for the receiver. |
| | | |
| | | |
| | | @see FBSDKLikeControlAuxiliaryPosition |
| | | */ |
| | | @property (nonatomic, assign) FBSDKLikeControlAuxiliaryPosition likeControlAuxiliaryPosition; |
| | | |
| | | /*! |
| | | @abstract The text alignment of the social sentence. |
| | | /** |
| | | The text alignment of the social sentence. |
| | | |
| | | @discussion This value is only valid for FBSDKLikeControlStyleStandard with |
| | | |
| | | This value is only valid for FBSDKLikeControlStyleStandard with |
| | | FBSDKLikeControlAuxiliaryPositionTop|Bottom. |
| | | */ |
| | | @property (nonatomic, assign) FBSDKLikeControlHorizontalAlignment likeControlHorizontalAlignment; |
| | | |
| | | /*! |
| | | @abstract The style to use for the receiver. |
| | | /** |
| | | The style to use for the receiver. |
| | | |
| | | |
| | | @see FBSDKLikeControlStyle |
| | | */ |
| | | @property (nonatomic, assign) FBSDKLikeControlStyle likeControlStyle; |
| | | |
| | | /*! |
| | | @abstract The preferred maximum width (in points) for autolayout. |
| | | /** |
| | | The preferred maximum width (in points) for autolayout. |
| | | |
| | | @discussion This property affects the size of the receiver when layout constraints are applied to it. During layout, |
| | | |
| | | This property affects the size of the receiver when layout constraints are applied to it. During layout, |
| | | if the text extends beyond the width specified by this property, the additional text is flowed to one or more new |
| | | lines, thereby increasing the height of the receiver. |
| | | */ |
| | | @property (nonatomic, assign) CGFloat preferredMaxLayoutWidth; |
| | | |
| | | /*! |
| | | @abstract If YES, a sound is played when the receiver is toggled. |
| | | /** |
| | | If YES, a sound is played when the receiver is toggled. |
| | | |
| | | @default YES |
| | | */ |