Continuity
iOS
UX Guide
Overview

iOS SDK: Styling

ℹ️ This document presents an overview of the configurable style elements of various Vizbee cards for mobile developers and designers using the Vizbee SDKs.

Overview

Vizbee SDK has in-built support for customizable UIs to drive the best conversion from mobile experience to TV experiences. Vizbee UIs have three simple concepts - flows, cards and styles. Vizbee flows (opens in a new tab) are triggered by the mobile app to help the user to interact with Vizbee functionality. Each flow presents a sequence of Vizbee cards. Each card can be styled to customize its layout, appearance and content.

Cards

The following is a list of UI cards presented across various Vizbee flows.

Card NameCard TypeDescription
Cast Authorization CardOverlay CardThis is the card shown shown to the user only on iOS when they tap on the cast icon and have not given the Local Network Access permission yet.
Cast Introduction CardOverlay CardThis is the first card shown in the Cast Introduction flow to introduce cast functionality to the user.
Smart Install CardOverlay CardThis is the first card shown in the Smart Install flow to prompt the user to automatically install the streaming app on a neary CTV device.
Smart Play CardOverlay CardThis is the first card shown in the Smart Play flow. This card prompts the user to select a streaming device or the mobile device for playback after tapping play on a video.
Device Selection CardInterstitial CardThis is the card that shows the list of available devices when the user taps on a cast icon.
Overlay CardThis is the overlay card that shows the list of available devices when the user taps on a cast icon.
App Install CardInterstitial CardThis is the card shown when the user selects a device but the app has not been installed yet. This card guides the user through the automatic installation process. The app install card has a very carefully synchronized UI flow that changes in response to the screen changes on the TV device on which a TV app is being automatically installed.
Device Status CardInterstitial CardThis is the card that is shown once the user selects a device. The card shows -
• Status of the device (launching app, connecting, connected etc.)
• Call to action to cancel connection or disconnect from a connected device.
Player CardInterstitial CardThis is the card shown when the user is playing a video. The card enables -
• Play/pause/seek/stop and other playback controls
• Audio control for chromecast and other devices that support audio controls
Full Portrait Image Interstitial CardThis exclusively supports vertical image posters and present them as full screen layout and shown when the user is playing a video. The card enables -
• Play/pause/seek/stop and other playback controls
• Audio control for chromecast and other devices that support audio controls

Cards Gallery

The following are some screenshots of Vizbee UI cards with different styles in various mobile apps.

  • Cast Authorization Card styles
  • Cast Introduction Card styles-1
  • Smart Install Card styles-2
  • Smart Play Card styles-3
  • Device Selection Card styles-4
  • App Install Card styles-5
  • Device Status Card styles-6 styles-7
  • Player Card styles-8 styles-9

Cards Style Configuration

All the Vizbee cards have completely customizable and styleable UI elements. The broad style properties of the UI cards include aspects such as overall card layouts, card theme colors, card fonts etc. In addition, Vizbee exposes all the native and detailed styling attributes. For example, all buttons can have a corner radius or shadows. For another example, all text properties including fonts, text wrap, case etc. can be configured for each of the UI labels.

The card styles are configured using custom JSON style sheets. These styles must be configured at the SDK integration time.

The following snippets provide examples of customization of the base themes for all cards and also specific style properties of the overlay and interstitial cards.

Card TypeStyling Snippets
All CardsTo style common properties of all cards with a customized base Vizbee Theme, refer to the following snippets.
Overlay CardsTo style common properties of all Overlay cards (i.e., Cast Introduction, Smart Install, Smart Play), refer to the following snippets.
Interstitial CardsTo style common properties of all Interstitial cards (i.e., Device Selection, App Install, Device Status, Player), refer to the following snippets.

To style card specific properties for Device Status Card and Player Card, refer to the following snippets.

Cards Text Configuration

Some of the cards have configurable text properties. These include all titles, subtitles, descriptions, button labels etc. These text properties can be viewed and configured directly from the Vizbee Console anytime. All text properties are dynamically loaded into the SDK and can be changed even after the SDK integration.

Card NameText Properties Configuration
Cast Authorization CardSee dynamically configurable card text properties here. (opens in a new tab)
Cast Introduction CardSee dynamically configurable card text properties here. (opens in a new tab)
Smart Install CardSee dynamically configurable card text properties here. (opens in a new tab)
Smart Play CardSee dynamically configurable card text properties here. (opens in a new tab)
Device Selection CardSee dynamically configurable card text properties here. (opens in a new tab)
App Install CardSee dynamically configurable card text properties here. (opens in a new tab)
Device Status CardThere are no configurable text properties for this card.
Player CardAll text properties are automatically set based on the playing content.

Snippets for Styling Configuration

Vizbee SDKs have pre-built UI flows and cards that can be easily and flexibly styled with simple configuration. For iOS, Vizbee provides a custom JSON format for styling the various UI cards.

Getting Started

Vizbee provides template style files(JSON for iOS) to get started with customizing the UI. Copy the template style files into your app code to get started with styling the Vizbee SDK UIs.

ScenarioSnippet
1iOS - Copy the template style file into the Vizbee integration folder within your iOS app code for customizing the Vizbee SDK UIs to your app's brand requirements.Code Setup

Customize Theme

The first step is to select a theme to style the Vizbee UI cards in your app. Vizbee provides a default Light or Dark theme for your mobile app. All you have to do is to select one of these themes as a base and customize the color pallette and fonts. This will automatically result in a consistent customization of the styles of all Vizbee cards to match your app brand!

ScenarioSnippet
1Light Theme - apply a default Light Theme for all Vizbee cards in an app with light background.Snippet
2Dark Theme - apply a default Dark Theme for all Vizbee cards in an app with dark background.Snippet
3Light & Dark Themes - Define both light and dark themes for Vizbee cards.Snippet

Once you have customized the base theme for Vizbee card styles, you may optionally customize specific UI elements such as buttons etc as described below.

Customize Cast Button

Cast button can be included in a tool bar or the layout of a fragment or an activity.

Cast Button in NavigationBar
ScenarioSnippet
1Cast Icon Color - Show cast icon added to different screens in same colorSnippet
2Cast Icon Color - Show cast icon added to different screens in different colorSnippet
3Cast Icon Color - Show cast icon in light/dark theme as per the corresponding appearance setting on the user's deviceSnippet
Cast Button in UIView
ScenarioSnippet
1Cast Icon Color - Show cast icon added to different screens in same colorSnippet
2Cast Icon Color - Show cast icon added to different screens in different colorSnippet

Customize Overlay Cards

Overlay cards include Cast Introduction, Smart Install and Smart Play cards that appear partially over your app's screen.

Overlay Card Position
ScenarioSnippet
1Bottom Overlay - show overlay UIs like Smart Install card or Cast Introduction card as bottom overlaysSnippet
2Middle Overlay - show overlay UIs like Smart Install card or Cast Introduction card as middle overlaysSnippet
Overlay Card Shape
ScenarioSnippet
1Rectangular Overlay - show overlay UIs like Smart Install card or Cast Introduction card as rectangular overlays with sharp cornersSnippet
Overlay Card Title and Subtitle
ScenarioSnippet
1Title and Subtitle - show overlay UIs like Smart Install card or Cast Introduction card with customized Title and SubtitleSnippet
Overlay Card Button Shape
ScenarioSnippet
1Rectangular Buttons - show overlay UIs like Smart Install card or Cast Introduction card with rectangular buttonsSnippet
2Rounded Buttons - show overlay UIs like Smart Install card or Cast Introduction card with rounded buttonsSnippet
Overlay Card Button Fill
ScenarioSnippet
1Filled Buttons - show overlay UIs like Smart Install card or Cast Introduction card with filled buttonsSnippet
2Outlined Buttons - show overlay UIs like Smart Install card or Cast Introduction card with outlined buttonsSnippet

Customize Interstitial Cards

Interstitial cards include Device Selection, Device Status, App Install and Player cards that are displayed full screen in your mobile app.

Interstitial Card Button Shape
ScenarioSnippet
1Rectangular Buttons - show interstitial UIs like Device Status card or App Install card with rectangular buttonsSnippet
2Rounded Buttons - show interstitial UIs like Device Status card or App Install card with rounded buttonsSnippet
Interstitial Card Button Fill
ScenarioSnippet
1Filled Buttons - show interstitial UIs like Device Status card or App Install card with filled buttonsSnippet
2Outlined Buttons - show interstitial UIs like Device Status card or App Install card with outlined buttonsSnippet

Customize Specific Cards

Pairing Card

Show Pairing Card with customised fonts and colors for text (Header, Footer and Buttons Text).

ScenarioSnippet
1Customise - Show Pairing Card with customised fonts and colors for text (Header, Footer and Buttons Text).Snippet
App Install Card

Show AppInstall Card with customized font for text (Header, Footer and Buttons Text) and custom app icon.

ScenarioSnippet
1Adjust font sizes - Show AppInstall Card with customized font for text (Header, Footer and Buttons Text).Snippet
2Change App Icon - Show AppInstall Card with customized app icon.Snippet
Player Card

Player card has multiple UI controls. Broadly, it includes video Title, Subtitle and Image in the top portion of the player card. It also includes Device Status, Playback Buttons, Video Seek Bar and Audio Seek Bar in the bottom portion of the player card.

Hide Player Card
ScenarioSnippet
1Hide Player Card Completely - Hide Vizbee player card completely to show your own customized version of the player card.Snippet
2Hide Player Card For Join or New Casting Video Scenario - Hide Vizbee player card from being shown automatically either when (a) mobile auto detects a video playing on the TV when it first connects to the TV or (b) user selects a new video after connecting to the TV. I.e., player card is shown only when the user taps the cast icon or the mini player.Snippet

Order and Visibility of Player Card Controls

ScenarioSnippet
1Player Controls Order - Change the order of player card controls (Device Status, Playback Buttons, Video Seek Bar and Audio Seek Bar).Snippet
2Hide Audio Seek Bar - Hide Audio Seek Bar in the player cardSnippet
Video & Audio Seek Bar "Thumb"
ScenarioSnippet
1Circular Thumb - Show a circular thumb for Video & Audio Seek Bar controls with customizable thumb dimension and progress colorSnippet
2Rectangular Thumb - Show a rectangular thumb for Video & Audio Seek Bar controls with customizable thumb dimension, progress colorSnippet
Playback Buttons

Customize the number, order and type of the playback buttons (including Fast Forward, Closed Captions, Play & Pause, Rewind, Stop) shown on the player card.

ScenarioSnippet
1Show 5 Playback Buttons - Show 5 playback buttons including Closed Captions, Rewind, Play & Pause, Fast Forward and Stop.Snippet
2Show 3 Playback Buttons - Show 3 playback buttons including Closed Captions, Play & Pause and Stop.Snippet
3Disable Play & Pause Button For Live Content - Disable Play & Pause button for Live contentSnippet
4Change Order of Playback Buttons - Change the order of playback buttons shown in the player cardSnippet