Tổng quan
Bộ điều khiển chế độ xem sẽ triển khai chế độ xem toàn màn hình của chế độ điều khiển mở rộng.
- Năm thành lập
- 3,1
Kế thừa UIViewController. Triển khai <GCKUIMediaButtonBarProtocol>.
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... | |
Tóm tắt về thuộc tính | |
BOOL | hideStreamPositionControlsForLiveContent |
Liệu các nút điều khiển vị trí sự kiện phát trực tiếp (bao gồm cả thanh trượt vị trí sự kiện phát trực tiếp, nhãn vị trí sự kiện phát trực tiếp, nhãn thời lượng sự kiện phát trực tiếp và chế độ xem tiến trình phát trực tiếp) có bị ẩn đối với nội dung phát trực tiếp hay không. 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
-
buttonType The 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. index The 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
-
index The 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
-
customButton The button instance to be presented in the control bar. index The 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
-
index The 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ệ.
Chi tiết về cơ sở lưu trú
|
readwritenonatomicassign |
Liệu các nút điều khiển vị trí sự kiện phát trực tiếp (bao gồm cả thanh trượt vị trí sự kiện phát trực tiếp, nhãn vị trí sự kiện phát trực tiếp, nhãn thời lượng sự kiện phát trực tiếp và chế độ xem tiến trình phát trực tiếp) có bị ẩn đối với nội dung phát trực tiếp hay không.
Giá trị mặc định là NO
.
- Năm thành lập
- 4