SBSDKTIFFImageWriterUserDefinedField

@interface SBSDKTIFFImageWriterUserDefinedField : NSObject

Class used to describe user-defined TIFF field.

  • Field name.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nonnull fieldName;

    Swift

    var fieldName: String { get set }
  • Field numeric tag. Please refer to TIFF documentation regarding reserved tag numbers and their field types.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger fieldTag;

    Swift

    var fieldTag: Int { get set }
  • Generate new field with given parameters.

    Declaration

    Objective-C

    + (nonnull instancetype)fieldWithNumericValue:(nonnull NSNumber *)value
                                        fieldName:(nonnull NSString *)name
                                         fieldTag:(NSInteger)tag;

    Swift

    convenience init(numericValue value: NSNumber, fieldName name: String, fieldTag tag: Int)

    Parameters

    value

    Field numeric value.

    fieldName

    Field name.

    fieldTag

    Field tag.

    Return Value

    Generated field.

  • Generate new field with given parameters.

    Declaration

    Objective-C

    + (nonnull instancetype)fieldWithStringValue:(nonnull NSString *)value
                                       fieldName:(nonnull NSString *)name
                                        fieldTag:(NSInteger)tag;

    Swift

    convenience init(stringValue value: String, fieldName name: String, fieldTag tag: Int)

    Parameters

    value

    Field string value.

    fieldName

    Field name.

    fieldTag

    Field tag.

    Return Value

    Generated field.

  • Field type getter.

    Declaration

    Objective-C

    - (SBSDKTIFFImageWriterUserDefinedFieldType)fieldType;

    Swift

    func fieldType() -> SBSDKTIFFImageWriterUserDefinedFieldType

    Return Value

    Field type.

  • Numeric value getter. Returns numeric value of the field, if field type is SBSDKTIFFImageWriterUserDefinedFieldTypeNumeric. Returns nil otherwise.

    Declaration

    Objective-C

    - (nonnull NSNumber *)numericValue;

    Swift

    func numericValue() -> NSNumber

    Return Value

    Numeric value or nil.

  • String value getter. Returns string value of the field, if field type is SBSDKTIFFImageWriterUserDefinedFieldTypeString. Returns nil otherwise.

    Declaration

    Objective-C

    - (nonnull NSString *)stringValue;

    Swift

    func stringValue() -> String

    Return Value

    Numeric value or nil.