DBACCOUNTSetProfilePhotoError
Objective-C
@interface DBACCOUNTSetProfilePhotoError : NSObject <DBSerializable, NSCopying>
Swift
class DBACCOUNTSetProfilePhotoError : NSObject, DBSerializable, NSCopying
The SetProfilePhotoError union.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBACCOUNTSetProfilePhotoErrorTag tag;Swift
var tag: DBACCOUNTSetProfilePhotoErrorTag { get }
-
Initializes union class with tag state of “file_type_error”.
Description of the “file_type_error” tag state: File cannot be set as profile photo.
Declaration
Objective-C
- (nonnull instancetype)initWithFileTypeError;Swift
init(fileTypeError: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “file_size_error”.
Description of the “file_size_error” tag state: File cannot exceed 10 MB.
Declaration
Objective-C
- (nonnull instancetype)initWithFileSizeError;Swift
init(fileSizeError: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “dimension_error”.
Description of the “dimension_error” tag state: Image must be larger than 128 x 128.
Declaration
Objective-C
- (nonnull instancetype)initWithDimensionError;Swift
init(dimensionError: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “thumbnail_error”.
Description of the “thumbnail_error” tag state: Image could not be thumbnailed.
Declaration
Objective-C
- (nonnull instancetype)initWithThumbnailError;Swift
init(thumbnailError: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “transient_error”.
Description of the “transient_error” tag state: Temporary infrastructure failure, please retry.
Declaration
Objective-C
- (nonnull instancetype)initWithTransientError;Swift
init(transientError: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “file_type_error”.
Declaration
Objective-C
- (BOOL)isFileTypeError;Swift
func isFileTypeError() -> BoolReturn Value
Whether the union’s current tag state has value “file_type_error”.
-
Retrieves whether the union’s current tag state has value “file_size_error”.
Declaration
Objective-C
- (BOOL)isFileSizeError;Swift
func isFileSizeError() -> BoolReturn Value
Whether the union’s current tag state has value “file_size_error”.
-
Retrieves whether the union’s current tag state has value “dimension_error”.
Declaration
Objective-C
- (BOOL)isDimensionError;Swift
func isDimensionError() -> BoolReturn Value
Whether the union’s current tag state has value “dimension_error”.
-
Retrieves whether the union’s current tag state has value “thumbnail_error”.
Declaration
Objective-C
- (BOOL)isThumbnailError;Swift
func isThumbnailError() -> BoolReturn Value
Whether the union’s current tag state has value “thumbnail_error”.
-
Retrieves whether the union’s current tag state has value “transient_error”.
Declaration
Objective-C
- (BOOL)isTransientError;Swift
func isTransientError() -> BoolReturn Value
Whether the union’s current tag state has value “transient_error”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBACCOUNTSetProfilePhotoError Class Reference