Überblick
Das Delegate-Protokoll GCKUIMediaButtonBarProtocol.
- Seit
- 3,1
Übernimmt <NSObject>.
Übernommen von GCKUIExpandedMediaControlsViewController und GCKUIMiniMediaControlsViewController.
Übersicht über Instanzmethoden | |
| (NSUInteger) | - buttonCount |
| Die maximale Anzahl an Schaltflächen, die vom Empfänger angepasst werden können. Mehr... | |
| (void) | - setButtonType:atIndex: |
Legt den Schaltflächentyp für die Schaltfläche auf Position index fest. Mehr... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| Gibt den aktuellen Schaltflächentyp an einer bestimmten Position zurück. Mehr... | |
| (void) | - setCustomButton:atIndex: |
| Legt die Instanz von UIButton fest, die an einer bestimmten Schaltflächenposition dargestellt werden soll. Mehr... | |
| (nullable UIButton *) | - customButtonAtIndex: |
| Gibt einen Verweis auf die benutzerdefinierte Schaltfläche an einer bestimmten Position zurück. Mehr... | |
Methodendetail
| - (NSUInteger) buttonCount |
Die maximale Anzahl an Schaltflächen, die vom Empfänger angepasst werden können.
- Rückgaben
- Anzahl der Tasten.
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
Legt den Schaltflächentyp für die Schaltfläche auf Position index fest.
- 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 |
Gibt den aktuellen Schaltflächentyp an einer bestimmten Position zurück.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Rückgaben
- Der Typ der Schaltfläche an der ausgewählten Position.
| - (void) setCustomButton: | (nullable UIButton *) | customButton | |
| atIndex: | (NSUInteger) | index | |
Legt die Instanz von UIButton fest, die an einer bestimmten Schaltflächenposition dargestellt werden soll.
- 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 |
Gibt einen Verweis auf die benutzerdefinierte Schaltfläche an einer bestimmten Position zurück.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Rückgaben
- Ein Verweis auf die Schaltfläche an der ausgewählten Position oder
nil, wenn sich an dieser Position keine benutzerdefinierte Schaltfläche befindet oder die Position ungültig ist.