การอ้างอิงโปรโตคอล <GCKUIMediaButtonBarProtocol>
ภาพรวม
โปรโตคอลการมอบสิทธิ์ GCKUIMediaButtonBarProtocol
- Since
- 3.1
รับค่า <NSObject>
รับค่าจาก GCKUIExpandedMediaControlsViewController และ GCKUIMiniMediaControlsViewController
สรุปเมธอดของอินสแตนซ์ | |
(NSUInteger) | - buttonCount |
จํานวนปุ่มสูงสุดที่ผู้รับสามารถปรับแต่งได้ เพิ่มเติม... | |
(void) | - setButtonType:atIndex: |
ตั้งค่าประเภทปุ่มสําหรับปุ่มที่ตําแหน่ง index เพิ่มเติม... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
แสดงผลประเภทปุ่มปัจจุบันในตําแหน่งที่กําหนด เพิ่มเติม... | |
(void) | - setCustomButton:atIndex: |
ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรแสดงที่ตําแหน่งปุ่มที่ระบุ เพิ่มเติม... | |
(UIButton *__nullable) | - customButtonAtIndex: |
แสดงการอ้างอิงไปยังปุ่มที่กําหนดเองในตําแหน่งที่ระบุ เพิ่มเติม... | |
รายละเอียดเมธอด
- (NSUInteger) buttonCount |
จํานวนปุ่มสูงสุดที่ผู้รับสามารถปรับแต่งได้
- การคืนสินค้า
- จํานวนปุ่ม
- (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
atIndex: | (NSUInteger) | index | |
ตั้งค่าประเภทปุ่มสําหรับปุ่มที่ตําแหน่ง 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 |
แสดงผลประเภทปุ่มปัจจุบันในตําแหน่งที่กําหนด
- Parameters
-
index The button's position, where 0 is the left-most position.
- การคืนสินค้า
- ประเภทของปุ่มในตําแหน่งที่เลือก
- (void) setCustomButton: | (UIButton *__nullable) | customButton | |
atIndex: | (NSUInteger) | index | |
ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรแสดงที่ตําแหน่งปุ่มที่ระบุ
- 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 |
แสดงการอ้างอิงไปยังปุ่มที่กําหนดเองในตําแหน่งที่ระบุ
- Parameters
-
index The button's position, where 0 is the right-most position.
- การคืนสินค้า
- มีการอ้างอิงไปยังปุ่มในตําแหน่งที่เลือก หรือ
nil
หากไม่มีปุ่มที่กําหนดเองที่ตําแหน่งดังกล่าว หรือตําแหน่งไม่ถูกต้อง