總覽
實作「正在播放」控制列的檢視畫面控制器。
在預設設定中,這項功能會顯示目前媒體項目的縮圖、標題和副標題、串流進度列,以及播放/暫停切換按鈕。
如需委派通訊協定,請參閱 GCKUIMiniMediaControlsViewControllerDelegate。
- 成立時間
- 3.0
繼承 UIViewController。實作 <GCKUIMediaButtonBarProtocol>。
執行個體方法摘要 | |
| (NSUInteger) | - buttonCount |
| 收件者可自訂的按鈕數量上限。更多... | |
| (void) | - setButtonType:atIndex: |
設定位置 index 的按鈕類型。更多... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| 傳回指定位置的按鈕類型。更多... | |
| (void) | - setCustomButton:atIndex: |
| 設定應在指定按鈕位置顯示的 UIButton 執行個體。更多... | |
| (UIButton *__nullable) | - customButtonAtIndex: |
| 傳回指定位置的自訂按鈕參照。更多... | |
房源摘要 | |
| id< GCKUIMiniMediaControlsViewControllerDelegate > | delegate |
| 檢視控制器的委派項目,通常是負責在適當時間顯示及隱藏此控制列的全螢幕檢視控制器。更多... | |
| BOOL | thumbnailEnabled |
| 是否應顯示縮圖。更多... | |
| BOOL | active |
| 指出控制列的顯示狀態。更多... | |
| CGFloat | minHeight |
| 顯示這個檢視區塊的最小 (和偏好) 高度。更多... | |
方法詳細資料
| - (NSUInteger) buttonCount |
收件者可自訂的按鈕數量上限為 4 個。
- 傳回
- 按鈕數量。
| - (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(如果該位置沒有自訂按鈕,或位置無效)。
資源詳細資料
|
readwritenonatomicweak |
檢視控制器的委派項目,通常是負責在適當時間顯示及隱藏此控制列的全螢幕檢視控制器。
|
readwritenonatomicassign |
是否要顯示縮圖。
根據預設,這個屬性會設為 YES。
|
readnonatomicassign |
指出控制列的顯示狀態。
如果顯示 YES,表示有媒體正在投放,你可以透過控制列控制媒體,並顯示控制列。當 NO 時,控制列應會隱藏。
|
readnonatomicassign |
顯示這個檢視區塊的最小 (和偏好) 高度。