<GCKUIMediaButtonBarprotocol> Giao thức

<GCKUIMediaButtonBarprotocol> Tài liệu tham khảo về giao thức

Tổng quan

Giao thức uỷ quyền GCKUIMediaButtonBarProtocol.

Since
3.1

Kế thừa <NSObject>.

Kế thừa từ GCKUIExpandedMediaControlsViewControllerGCKUIMiniMediaControlsViewController.

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

(NSUInteger) - buttonCount
 Số nút tối đa mà người nhận có thể tuỳ chỉnh. Thêm...
 
(void) - setButtonType:atIndex:
 Đặt loại nút cho vị trí index. Thêm...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Trả về loại nút hiện tại tại một vị trí cụ thể. Thêm...
 
(void) - setCustomButton:atIndex:
 Đặt thực thể của UIButton sẽ được trình bày ở một vị trí nút nhất định. Thêm...
 
(UIButton *__nullable) - customButtonAtIndex:
 Trả về tham chiếu đến nút tuỳ chỉnh ở một vị trí nhất định. Thêm...
 

Chi tiết phương thức

- (NSUInteger) buttonCount

Số nút tối đa mà người nhận có thể tuỳ chỉnh.

Trả về
Số nút.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Đặt loại nút cho vị trí index.

Parameters
buttonTypeThe type of the button. If the type is GCKUIMediaButtonTypeCustom, a UIButton instance should be passed for the same index using setCustomButton:atIndex:. Otherwise a default button is created and presented in that position.
indexThe position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
- (GCKUIMediaButtonType) buttonTypeAtIndex: (NSUInteger)  index

Trả về loại nút hiện tại tại một vị trí cụ thể.

Parameters
indexThe button's position, where 0 is the left-most position.
Trả về
Loại nút tại vị trí đã chọn.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Đặt thực thể của UIButton sẽ được trình bày ở một vị trí nút nhất định.

Parameters
customButtonThe button instance to be presented in the control bar.
indexThe position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
- (UIButton *__nullable) customButtonAtIndex: (NSUInteger)  index

Trả về tham chiếu đến nút tuỳ chỉnh ở một vị trí nhất định.

Parameters
indexThe button's position, where 0 is the right-most position.
Trả về
Tham chiếu đến nút ở vị trí đã chọn hoặc nil nếu không có nút tùy chỉnh nào ở vị trí đó hoặc vị trí không hợp lệ.