GCKUIMiniMediaControlsViewController Sınıfı

GCKUIMiniMediaControlsViewController Sınıf Referansı

Genel Bakış

"Ne çalıyor?" kontrol çubuğunu uygulayan bir görünüm denetleyicisi.

Varsayılan yapılandırmasında, mevcut medya öğesinin küçük resmi, başlığı ve alt başlığı, akış ilerleme çubuğu ve oynatma/duraklatma açma/kapatma düğmesi gösterilir.

Temsilci protokolü için GCKUIMiniMediaControlsViewControllerDelegate adresine bakın.

yılından beri
3.0

UIViewController'ı devralır. <GCKUIMediaButtonBarProtocol> uyguluyor.

Örnek Yöntem Özeti

(NSUInteger) - buttonCount
 Alıcı tarafından özelleştirilebilecek maksimum düğme sayısı. Diğer...
 
(void) - setButtonType:atIndex:
 index konumundaki düğme için düğme türünü ayarlar. Diğer...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 Belirli bir konumdaki geçerli düğme türünü döndürür. Diğer...
 
(void) - setCustomButton:atIndex:
 Belirli bir düğme konumunda sunulması gereken UIButton örneğini ayarlar. Diğer...
 
(UIButton *__nullable) - customButtonAtIndex:
 Belirli bir konumdaki özel düğmeye referans döndürür. Diğer...
 

Tesis Özeti

id< GCKUIMiniMediaControlsViewControllerDelegatedelegate
 Görünüm denetleyicisinin temsilcisi. Genellikle bu kontrol çubuğunu uygun olduğunda sunmaktan ve gizlemekten sorumlu tam ekran görünüm denetleyicisi. Diğer...
 
BOOL thumbnailEnabled
 Küçük resmin gösterilip gösterilmeyeceği. Diğer...
 
BOOL active
 Kontrol çubuğunun görüntüleme durumunu gösterir. Diğer...
 
CGFloat minHeight
 Bu görünümün sunulması gereken minimum (ve tercih edilen) yükseklik. Diğer...
 

Yöntem Ayrıntıları

- (NSUInteger) buttonCount

Alıcı tarafından özelleştirilebilecek maksimum düğme sayısı.

İadeler
Düğme sayısı.
- (void) setButtonType: (GCKUIMediaButtonType buttonType
atIndex: (NSUInteger)  index 

index konumundaki düğme için düğme türünü ayarlar.

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

Belirli bir konumdaki geçerli düğme türünü döndürür.

Parameters
indexThe button's position, where 0 is the left-most position.
İadeler
Seçilen konumdaki düğmenin türü.
- (void) setCustomButton: (UIButton *__nullable)  customButton
atIndex: (NSUInteger)  index 

Belirli bir düğme konumunda sunulması gereken UIButton örneğini ayarlar.

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

Belirli bir konumdaki özel düğmeye referans döndürür.

Parameters
indexThe button's position, where 0 is the right-most position.
İadeler
Seçilen konumdaki düğmeye referans veya nil bu konumda özel düğme yoksa ya da konum geçersizse.

Tesis Ayrıntıları

- (id<GCKUIMiniMediaControlsViewControllerDelegate>) delegate
readwritenonatomicweak

Görünüm denetleyicisinin temsilcisi. Genellikle bu kontrol çubuğunu uygun olduğunda sunmaktan ve gizlemekten sorumlu tam ekran görünüm denetleyicisi.

- (BOOL) thumbnailEnabled
readwritenonatomicassign

Küçük resmin gösterilip gösterilmeyeceği.

Bu özellik varsayılan olarak YES şeklinde ayarlanır.

- (BOOL) active
readnonatomicassign

Kontrol çubuğunun görüntüleme durumunu gösterir.

YES simgesi gösterildiğinde, kontrol çubuğuyla kontrol edilebilen ve görünür hale getirilebilen bir medya içeriği yayınlanıyor demektir. NO olduğunda kontrol çubuğu gizlenmelidir.

- (CGFloat) minHeight
readnonatomicassign

Bu görünümün sunulması gereken minimum (ve tercih edilen) yükseklik.