<GCKUIMediaButtonBarProtocol> プロトコル リファレンス
概要
GCKUIMediaButtonBarProtocol デリゲート プロトコル。
- シンセ
- 3.1
<NSObject> を継承します。
GCKUIExpandedMediaControlsViewController と GCKUIMiniMediaControlsViewController によって継承されます。
インスタンス メソッドの概要 | |
(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
。