GPKGMediaRow
Objective-C
@interface GPKGMediaRow : GPKGUserCustomRow
Swift
class GPKGMediaRow : GPKGUserCustomRow
User Media Row containing the values from a single result set row
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMediaTable:(GPKGMediaTable *)table andColumns:(GPKGUserColumns *)columns andValues:(NSMutableArray *)values;
Swift
init!(mediaTable table: GPKGMediaTable!, andColumns columns: GPKGUserColumns!, andValues values: NSMutableArray!)
Parameters
table
media table
columns
columns
values
values
Return Value
new media row
-
Initialize
Declaration
Objective-C
- (instancetype)initWithMediaTable:(GPKGMediaTable *)table;
Swift
init!(mediaTable table: GPKGMediaTable!)
Parameters
table
media table
Return Value
new media row
-
Get the media table
Return Value
media table
-
Get the data column index
Declaration
Objective-C
- (int)dataColumnIndex;
Swift
func dataColumnIndex() -> Int32
Return Value
data column index
-
Get the data column
Declaration
Objective-C
- (GPKGUserCustomColumn *)dataColumn;
Swift
func dataColumn() -> GPKGUserCustomColumn!
Return Value
data column
-
Get the data
Declaration
Objective-C
- (NSData *)data;
Swift
func data() -> Data!
Return Value
data
-
Set the data
Declaration
Objective-C
- (void)setData:(NSData *)data;
Swift
func setData(_ data: Data!)
Parameters
data
data
-
Get the properties that apply to the data image source
See: https://developer.apple.com/documentation/imageio/cgimageproperties/individual_image_properties kCGImagePropertyPixelWidth, kCGImagePropertyPixelHeight, etc
Declaration
Objective-C
- (NSDictionary *)dataImageSourceProperties;
Swift
func dataImageSourceProperties() -> [AnyHashable : Any]!
Return Value
Image Source Container Properties
-
Get the data image
Declaration
Objective-C
- (id)dataImage;
Swift
func dataImage() -> Any!
Return Value
data image
-
Get the data as a scaled image
Declaration
Objective-C
- (id)dataImageWithScale:(CGFloat)scale;
Swift
func dataImage(withScale scale: CGFloat) -> Any!
Parameters
scale
scale, 0.0 to 1.0
Return Value
data image
-
Set the data from a full quality image
Declaration
Objective-C
- (void)setDataWithImage:(id)image andFormat:(enum GPKGCompressFormat)format;
Swift
func setDataWithImage(_ image: Any!, andFormat format: GPKGCompressFormat)
Parameters
image
image
format
image format
-
Set the data from an image
Declaration
Objective-C
- (void)setDataWithImage:(id)image andFormat:(enum GPKGCompressFormat)format andQuality:(CGFloat)quality;
Swift
func setDataWithImage(_ image: Any!, andFormat format: GPKGCompressFormat, andQuality quality: CGFloat)
Parameters
image
image
format
image format
quality
compression quality, 0.0 to 1.0, used only for GPKG_CF_JPEG
-
Get the content type column index
Declaration
Objective-C
- (int)contentTypeColumnIndex;
Swift
func contentTypeColumnIndex() -> Int32
Return Value
content type column index
-
Get the content type column
Declaration
Objective-C
- (GPKGUserCustomColumn *)contentTypeColumn;
Swift
func contentTypeColumn() -> GPKGUserCustomColumn!
Return Value
content type column
-
Get the content type
Declaration
Objective-C
- (NSString *)contentType;
Swift
func contentType() -> String!
Return Value
content type
-
Set the content type
Declaration
Objective-C
- (void)setContentType:(NSString *)contentType;
Swift
func setContentType(_ contentType: String!)
Parameters
contentType
content type