Kagiso Mohajane
Kagiso Mohajane

Reputation: 21

Custom Google Cast MiniController

I have been tasked with customizing the miniController for google cast in iOS. I need to customize the mini controller's text color and also blur out the miniController I have spend some time in trying to find sources that would help in this regard with no success. Could anyone please help point me to resources that will help me solve this or help inspire a solution?

I cannot post any sample code as this is for work. FYI im new to iOS

Many Thanks

Upvotes: 1

Views: 647

Answers (1)

abielita
abielita

Reputation: 13469

You may refer with this documentation on how to Apply Custom Styles to Your iOS App. This procedure uses the example of setting the body text color of your app's mini controller to red.

  1. Look in the table of views and styles to find the view name of the widget or group of widgets that you want to style. Group names are marked with ▼.

    Example: miniController widget view

  2. Find the names of the attributes you want to change from the list of properties in the corresponding style class listed in this table.

    Example: bodyTextColor is a property of the GCKUIStyleAttributesMiniController class.

Sample code:

GCKUIStyle *castStyle = [GCKUIStyle.sharedInstance];
castStyle.castViews.mediaControl.miniController.bodyTextColor = [UIColor red];
// Assign colors, fonts and images to other properties, as needed
[castStyle applyStyle];

Hope this helps!

Upvotes: 1

Related Questions