GCKUIExpandedMediaControlsViewController クラス

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
buttonTypeThe 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.
indexThe 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
indexThe button's position, where 0 is the left-most position.
戻り値
選択した位置にあるボタンのタイプ。
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

特定のボタン位置に表示する UIButton のインスタンスを設定します。

Parameters
customButtonThe button instance to be presented in the control bar.
indexThe 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
indexThe button's position, where 0 is the right-most position.
戻り値
選択した位置にあるボタンの参照。その位置にカスタムボタンがない場合、または位置が無効な場合は nil