Протокол <GCKUIMediaButtonBarProtocol>

Справочник по протоколу <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
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 , если в этой позиции нет пользовательской кнопки или позиция недействительна.
,
Справочник по протоколу <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
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 , если в этой позиции нет пользовательской кнопки или позиция недействительна.