GCKUIExpandedMediaControlsViewController 类参考
概览
实现展开控件全屏视图的视图控制器。
- 辛塞
- 3.1
继承 UIViewController。实现了 <GCKUIMediaButtonBarProtocol>。
实例方法摘要 | |
(NSUInteger) | - buttonCount |
接收器可以自定义的按钮数量上限。更多... | |
(void) | - setButtonType:atIndex: |
设置位置 index 的按钮的按钮类型。更多... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
返回指定位置的当前按钮类型。更多... | |
(void) | - setCustomButton:atIndex: |
设置应在给定按钮位置展示的 UIButton 实例。更多... | |
(UIButton *__nullable) | - customButtonAtIndex: |
返回对指定位置上的自定义按钮的引用。更多... | |
方法详细信息
- (NSUInteger) buttonCount |
接收器可以自定义的按钮数量上限。
- 返回
- 按钮数量。
- (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
atIndex: | (NSUInteger) | index | |
设置位置 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 |
返回指定位置的当前按钮类型。
- Parameters
-
index The button's position, where 0 is the left-most position.
- 返回
- 所选位置处的按钮类型。
- (void) setCustomButton: | (UIButton *__nullable) | customButton | |
atIndex: | (NSUInteger) | index | |
设置应在给定按钮位置展示的 UIButton 实例。
- 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.
- (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
返回对指定位置上的自定义按钮的引用。
- Parameters
-
index The button's position, where 0 is the right-most position.
- 返回
- 对所选位置处的按钮的引用,如果此位置没有自定义按钮,或位置无效,则为
nil
。