Ringkasan
Pengontrol tampilan yang menerapkan panel kontrol "sedang diputar".
Dalam konfigurasi default, panel ini menampilkan thumbnail, judul, dan subjudul untuk item media saat ini, status progres streaming, dan tombol ganti putar/jeda.
Lihat GCKUIMiniMediaControlsViewControllerDelegate untuk protokol delegasi.
- Sejak
- 3.0
Mewarisi UIViewController. Mengimplementasikan <GCKUIMediaButtonBarProtocol>.
Ringkasan Metode Instance | |
| (NSUInteger) | - buttonCount |
| Jumlah maksimum tombol 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 tertentu. Lainnya... | |
| (void) | - setCustomButton:atIndex: |
| Menetapkan instance UIButton yang harus ditampilkan pada posisi tombol tertentu. Lainnya... | |
| (UIButton *__nullable) | - customButtonAtIndex: |
| Menampilkan referensi ke tombol kustom pada posisi tertentu. Lainnya... | |
Ringkasan Properti | |
| id< GCKUIMiniMediaControlsViewControllerDelegate > | delegate |
| Delegasi pengontrol tampilan, biasanya pengontrol tampilan layar penuh yang bertugas menampilkan dan menyembunyikan panel kontrol ini jika sesuai. Lainnya... | |
| BOOL | thumbnailEnabled |
| Apakah gambar thumbnail harus ditampilkan atau tidak. Lainnya... | |
| BOOL | active |
| Menunjukkan status tampilan panel kontrol. Lainnya... | |
| CGFloat | minHeight |
| Tinggi minimal (dan pilihan) saat tampilan ini harus ditampilkan. Lainnya... | |
Detail Metode
| - (NSUInteger) buttonCount |
Jumlah maksimum tombol 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 tertentu.
- Parameters
-
index The button's position, where 0 is the left-most position.
- Hasil
- Jenis tombol pada posisi yang dipilih.
| - (void) setCustomButton: | (UIButton *__nullable) | 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.
| - (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
Menampilkan referensi ke tombol kustom pada posisi tertentu.
- 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 kustom pada posisi tersebut, atau posisi tidak valid.
Detail Properti
|
readwritenonatomicweak |
Delegasi pengontrol tampilan, biasanya pengontrol tampilan layar penuh yang bertugas menampilkan dan menyembunyikan panel kontrol ini jika sesuai.
|
readwritenonatomicassign |
Apakah gambar thumbnail harus ditampilkan atau tidak.
Secara default, properti ini disetel ke YES.
|
readnonatomicassign |
Menunjukkan status tampilan panel kontrol.
Saat YES, ada media yang ditransmisikan yang dapat dikontrol oleh panel kontrol, dan dapat dibuat terlihat. Saat NO, panel kontrol harus disembunyikan.
|
readnonatomicassign |
Tinggi minimal (dan pilihan) saat tampilan ini harus ditampilkan.