<GCKUIMediaButtonBarProtocol> Giao thức

Tham chiếu giao thức <GCKUIMediaButtonBarProtocol>

Tổng quan

Giao thức uỷ quyền GCKUIMediaButtonBarProtocol.

Năm thành lập
3,1

Kế thừa <NSObject>.

Kế thừa từ GCKUIExpandedMediaControlsViewControllerGCKUIMiniMediaControlsViewController.

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

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

Chi tiết phương pháp

- (NSUInteger) buttonCount

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

Trả bóng
Số lượng nút.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

Đặt loại nút cho nút tại 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ề kiểu hiện tại của nút tại một vị trí cho trước.

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

Đặt thực thể của UIButton sẽ hiển thị ở 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.
- (nullable UIButton *) customButtonAtIndex: (NSUInteger)  index

Trả về tham chiếu đến nút tuỳ chỉnh tại một vị trí cho trước.

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