کلاس GCKUIExpandedMediaControlsViewController

مرجع کلاس GCKUIExpandedMediaControlsViewController

بررسی اجمالی

کنترل‌کننده‌ای که کنترل‌های توسعه‌یافته را در نمای تمام‌صفحه پیاده‌سازی می‌کند.

از آنجا که
3.1

UIViewController را به ارث می برد. <GCKUIMediaButtonBarProtocol> پیاده سازی می کند.

خلاصه روش نمونه

(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
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 است.