Lớp GCKUIImageHints

Tài liệu tham khảo về lớp GCKUIImageHints

Tổng quan

Một đối tượng cung cấp gợi ý cho GCKUIImagePicker về loại và kích thước của một hình ảnh sẽ được chọn để hiển thị trong giao diện người dùng.

Since
3.0

Kế thừa NSObject, <NSCopying> và <NSCoding>.

Tóm tắt phương thức của thực thể

(instancetype) - initWithImageType:imageSize:
 Trình khởi chạy tiện lợi. Thêm...
 
(instancetype) - initWithImageType:imageSize:customData:
 Trình khởi tạo được chỉ định. Thêm...
 

Tóm tắt thuộc tính

GCKMediaMetadataImageType imageType
 Loại hình ảnh. Thêm...
 
CGSize imageSize
 Kích thước mà hình ảnh sẽ hiển thị. Thêm...
 
NSObject< NSCoding > * customData
 Dữ liệu tuỳ chỉnh có thể dùng để nhận dạng hình ảnh. Thêm...
 

Chi tiết phương thức

- (instancetype) initWithImageType: (GCKMediaMetadataImageType imageType
imageSize: (CGSize)  imageSize 

Trình khởi chạy tiện lợi.

Đặt dữ liệu tuỳ chỉnh thành nil.

Parameters
imageTypeThe image type.
imageSizeThe image size.
- (instancetype) initWithImageType: (GCKMediaMetadataImageType imageType
imageSize: (CGSize)  imageSize
customData: (NSObject< NSCoding > *__nullable)  customData 

Trình khởi tạo được chỉ định.

Parameters
imageTypeThe image type.
imageSizeThe image size.
customDataThe arbitrary custom data that can be used by a custom GCKUIImagePicker to select an image.

Chi tiết thuộc tính

- (GCKMediaMetadataImageType) imageType
readnonatomicassign

Loại hình ảnh.

- (CGSize) imageSize
readnonatomicassign

Kích thước mà hình ảnh sẽ hiển thị.

- (NSObject<NSCoding>*) customData
readnonatomiccopy

Dữ liệu tuỳ chỉnh có thể dùng để nhận dạng hình ảnh.

Giá trị này phải tuân thủ quy tắc mã hoá khoá-giá trị.