- Step 1 - Identify the component where Google IMA SDK is initialized in your app.
- Step 2 - Include the
VizbeeClient.brs
as dependency in the xml of scene identified. - Step 3 - Pass imaSDK instance to Vizbee to monitor ad status as shown below
Show the cast icon in light/dark theme as per the corresponding appearance setting on the user's device
- In Android, the cast icon will be part of the application's Activity, hence, the styling (color) can be provided by application's style file.
- Define the style item
vzb_castIconColor
in theapp-style.xml
as shown below. - Create 2
colors.xml
files, one in res/values folder and another in res/values-night folder. - Now, define
colorCastIcon
items and set values to match light/dark theme as shown below. These values are picked based on the device's light/dark theme settings.
- Step 1 - Add the dependency on Vizbee Sender SDK in your Android app’s module build.gradle
- Step 1 - Create an instance of OptionsProvider as shown in
CastOptionsProvider.kt
. - Step 2 - Register app’s
OptionsProvider
implementation class as shown inAndroidManifest.xml
- Step 3 - Start Google Cast Framework by invoking CastContext as shown in
VizbeeWrapper.kt
Setup both Light and Dark themes for styling of Vizbee cards to match the app's color pallete and fonts.
- Create a VizbeeStyles.swift file and update the
lightTheme
andrightTheme
with the values which matches app's light/dark theme as specified here - Update the style to light/dark theme as per the corresponding appearance setting on the user's device as shown below
NewerOlder