คลาส GCKUIMiniMediaControlsViewController

การอ้างอิงคลาส GCKUIMiniMediaControlsViewController

ภาพรวม

ตัวควบคุมมุมมองที่ใช้แถบควบคุม "กำลังเล่น"

ในการกำหนดค่าเริ่มต้น แถบนี้จะแสดงภาพขนาดย่อ ชื่อ และคำบรรยายแทนเสียงของรายการสื่อปัจจุบัน แถบความคืบหน้าของสตรีม และปุ่มสลับเล่น/หยุดชั่วคราว

ดูโปรโตคอลการมอบสิทธิ์ได้ที่ GCKUIMiniMediaControlsViewControllerDelegate

Since
3.0

รับค่า UIViewController ใช้ <GCKUIMediaButtonBarProtocol>

สรุปวิธีการของอินสแตนซ์

(NSUInteger) - buttonCount
 จำนวนปุ่มสูงสุดที่ผู้รับสามารถปรับแต่งได้ เพิ่มเติม...
 
(void) - setButtonType:atIndex:
 กำหนดประเภทปุ่มสำหรับปุ่มที่ตำแหน่ง index เพิ่มเติม...
 
(GCKUIMediaButtonType- buttonTypeAtIndex:
 แสดงผลประเภทปุ่มปัจจุบันในตำแหน่งที่ระบุ เพิ่มเติม...
 
(void) - setCustomButton:atIndex:
 ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรแสดงในตำแหน่งปุ่มที่กำหนด เพิ่มเติม...
 
(UIButton *__nullable) - customButtonAtIndex:
 แสดงผลการอ้างอิงปุ่มที่กำหนดเองในตำแหน่งที่ระบุ เพิ่มเติม...
 

สรุปพร็อพเพอร์ตี้

id< GCKUIMiniMediaControlsViewControllerDelegatedelegate
 Delegate ของตัวควบคุมมุมมอง ซึ่งโดยปกติจะเป็นตัวควบคุมมุมมองแบบเต็มหน้าจอที่รับผิดชอบในการนำเสนอและซ่อนแถบควบคุมนี้เมื่อเหมาะสม เพิ่มเติม...
 
BOOL thumbnailEnabled
 จะแสดงภาพปกหรือไม่ เพิ่มเติม...
 
BOOL active
 ระบุสถานะการแสดงผลของแถบควบคุม เพิ่มเติม...
 
CGFloat minHeight
 ความสูงขั้นต่ำ (และที่แนะนำ) ที่ควรแสดงมุมมองนี้ เพิ่มเติม...
 

รายละเอียดวิธีการ

- (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: (UIButton *__nullable)  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.
- (UIButton *__nullable) customButtonAtIndex: (NSUInteger)  index

แสดงผลการอ้างอิงปุ่มที่กำหนดเองในตำแหน่งที่ระบุ

Parameters
indexThe button's position, where 0 is the right-most position.
การคืนสินค้า
การอ้างอิงถึงปุ่มในตำแหน่งที่เลือก หรือ nil หากไม่มีปุ่มที่กำหนดเองในตำแหน่งนั้น หรือตำแหน่งไม่ถูกต้อง

รายละเอียดพร็อพเพอร์ตี้

- (id<GCKUIMiniMediaControlsViewControllerDelegate>) delegate
readwritenonatomicweak

Delegate ของตัวควบคุมมุมมอง ซึ่งโดยปกติจะเป็นตัวควบคุมมุมมองแบบเต็มหน้าจอที่รับผิดชอบในการนำเสนอและซ่อนแถบควบคุมนี้เมื่อเหมาะสม

- (BOOL) thumbnailEnabled
readwritenonatomicassign

จะแสดงภาพปกหรือไม่

โดยค่าเริ่มต้น พร็อพเพอร์ตี้นี้จะตั้งค่าเป็น YES

- (BOOL) active
readnonatomicassign

ระบุสถานะการแสดงผลของแถบควบคุม

เมื่อ YES มีการแคสต์สื่อซึ่งควบคุมได้โดยใช้แถบควบคุม และสามารถทำให้มองเห็นได้ เมื่อ NO แถบควบคุมควรซ่อนอยู่

- (CGFloat) minHeight
readnonatomicassign

ความสูงขั้นต่ำ (และที่แนะนำ) ที่ควรแสดงมุมมองนี้