<GCKUIMediaButtonBarProtocol> Протокол

Справочник по протоколу <GCKUIMediaButtonBarProtocol>

Обзор

Протокол делегата GCKUIMediaButtonBarProtocol .

С
3.1

Наследует <NSObject>.

Унаследовано GCKUIExpandedMediaControlsViewController и GCKUIMiniMediaControlsViewController .

Сводка метода экземпляра

(NSUInteger) - buttonCount
Максимальное количество кнопок, которые может настроить приёмник. Более...
(void) - setButtonType:atIndex:
Устанавливает тип кнопки для кнопки в позиции index . Более...
( GCKUIMediaButtonType- buttonTypeAtIndex:
Возвращает текущий тип кнопки в заданной позиции. Более...
(void) - setCustomButton:atIndex:
Устанавливает экземпляр UIButton , который должен быть представлен в данной позиции кнопки. Более...
(nullable UIButton *) - 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: (nullable UIButton *)  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 .
- (nullable UIButton *) customButtonAtIndex: (NSUInteger)  index

Возвращает ссылку на пользовательскую кнопку в заданной позиции.

Parameters
indexThe button's position, where 0 is the right-most position.
Возврат
Ссылка на кнопку в выбранной позиции или nil , если в этой позиции нет пользовательской кнопки или позиция недействительна.