總覽
用於實作展開控制項全螢幕檢視畫面的檢視控制器。
- 辛策
- 3.1
沿用 UIViewController。實作 <GCKUIMediaButtonBarProtocol>。
執行個體方法摘要 | |
(NSUInteger) | - buttonCount |
接收器可自訂的按鈕數量上限。更多... | |
(void) | - setButtonType:atIndex: |
設定位於 index 位置的按鈕類型。更多... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
傳回指定位置的目前按鈕類型。更多... | |
(void) | - setCustomButton:atIndex: |
設定應顯示在特定按鈕位置的 UIButton 例項。更多... | |
(nullable UIButton *) | - customButtonAtIndex: |
傳回指定位置中自訂按鈕的參照。更多... | |
屬性摘要 | |
BOOL | hideStreamPositionControlsForLiveContent |
是否隱藏直播內容的串流位置控制項 (包括串流位置滑桿、串流位置標籤、串流時間長度標籤,以及串流進度檢視畫面)。更多... | |
方法說明
- (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: | (nullable UIButton *) | 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.
- (nullable UIButton *) customButtonAtIndex: | (NSUInteger) | index |
傳回指定位置中自訂按鈕的參照。
- Parameters
-
index The button's position, where 0 is the right-most position.
- 傳回
- 所選位置的按鈕參照;如果該位置沒有自訂按鈕,或者位置無效,則傳回
nil
。
資源詳細資料
|
readwritenonatomicassign |
是否隱藏直播內容的串流位置控制項 (包括串流位置滑桿、串流位置標籤、串流時間長度標籤,以及串流進度檢視畫面)。
預設值為 NO
。
- 辛策
- 4.0