Ringkasan
Protokol delegasi GCKUIMediaButtonBarProtocol.
- Sejak
- 3,1
Mewarisi <NSObject>.
Diwariskan oleh GCKUIExpandedMediaControlsViewController, dan GCKUIMiniMediaControlsViewController.
Ringkasan Metode Instance | |
| (NSUInteger) | - buttonCount |
| Jumlah tombol maksimum yang dapat disesuaikan oleh penerima. Lainnya... | |
| (void) | - setButtonType:atIndex: |
Menetapkan jenis tombol untuk tombol di posisi index. Lainnya... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| Menampilkan jenis tombol saat ini pada posisi yang ditentukan. Lainnya... | |
| (void) | - setCustomButton:atIndex: |
| Menetapkan instance UIButton yang harus ditampilkan pada posisi tombol tertentu. Lainnya... | |
| (nullable UIButton *) | - customButtonAtIndex: |
| Menampilkan referensi ke tombol khusus pada posisi yang telah ditentukan. Lainnya... | |
Detail Metode
| - (NSUInteger) buttonCount |
Jumlah tombol maksimum yang dapat disesuaikan oleh penerima.
- Hasil
- Jumlah tombol.
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
Menetapkan jenis tombol untuk tombol di posisi 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 |
Menampilkan jenis tombol saat ini pada posisi yang ditentukan.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Hasil
- Jenis tombol di posisi yang dipilih.
| - (void) setCustomButton: | (nullable UIButton *) | customButton | |
| atIndex: | (NSUInteger) | index | |
Menetapkan instance UIButton yang harus ditampilkan pada posisi tombol tertentu.
- 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 |
Menampilkan referensi ke tombol khusus pada posisi yang telah ditentukan.
- Parameters
-
index The button's position, where 0 is the right-most position.
- Hasil
- Referensi ke tombol pada posisi yang dipilih, atau
niljika tidak ada tombol khusus di posisi tersebut, atau posisinya tidak valid.