概要
「この曲なに?」コントロール バーを実装するビュー コントローラ。
デフォルトの設定では、現在のメディア アイテムのサムネイル、タイトル、サブタイトル、ストリームの進行状況バー、再生と一時停止の切り替えボタンが表示されます。
デリゲート プロトコルについては、GCKUIMiniMediaControlsViewControllerDelegate をご覧ください。
- シンセ
- 3.0
UIViewController を継承します。<GCKUIMediaButtonBarProtocol> を実装します。
インスタンス メソッドの概要 | |
(NSUInteger) | - buttonCount |
レシーバーがカスタマイズできるボタンの最大数。その他... | |
(void) | - setButtonType:atIndex: |
位置 index のボタンの種類を設定します。その他... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
指定した位置にある現在のタイプのボタンを返します。その他... | |
(void) | - setCustomButton:atIndex: |
特定のボタン位置に表示する UIButton のインスタンスを設定します。その他... | |
(nullable UIButton *) | - customButtonAtIndex: |
指定した位置にあるカスタム ボタンへの参照を返します。その他... | |
プロパティの概要 | |
id < GCKUIMiniMediaControlsViewControllerDelegate > | delegate |
ビュー コントローラのデリゲート。通常、必要に応じてこのコントロール バーの表示と非表示を切り替える全画面ビュー コントローラ。その他... | |
BOOL | thumbnailEnabled |
サムネイル画像を表示するかどうかを指定します。その他... | |
BOOL | active |
コントロール バーの表示状態を示します。その他... | |
CGFloat | minHeight |
このビューが表示される最小の高さ(推奨の高さ)。その他... | |
メソッドの詳細
- (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
。
プロパティの詳細
|
readwritenonatomicweak |
ビュー コントローラのデリゲート。通常、必要に応じてこのコントロール バーの表示と非表示を切り替える全画面ビュー コントローラ。
|
readwritenonatomicassign |
サムネイル画像を表示するかどうかを指定します。
デフォルトでは、このプロパティは YES
に設定されています。
|
readnonatomicassign |
コントロール バーの表示状態を示します。
YES
の場合、キャスト中のメディアはコントロール バーで操作でき、表示することが可能です。NO
の場合は、コントロール バーを非表示にする必要があります。
|
readnonatomicassign |
このビューが表示される最小の高さ(推奨の高さ)。