setViewSettings abstract method

Future<VKWebAppBoolResult> setViewSettings({
  1. required StatusBarStyle statusBarStyle,
  2. String? actionBarColor,
  3. String? navigationBarColor,
})

VKWebAppSetViewSettings

Platforms: iOS, Android

statusBarStyle - theme for status bar icons. Possible options: light, dark. actionBarColor - the color of the action bar. Possible options: hex-code (# 00ffff), none - transparent. This parameter only works on Android. navigationBarColor - the color of the navigation bar. Possible option: hex-code (# 00ffff). This parameter only works on Android.

Result: The client sets the theme for the icons in the status bar based on the statusBarStyle parameter and the color of the status bar based on the actionBarColor parameter.

Implementation

Future<VKWebAppBoolResult> setViewSettings({
  required StatusBarStyle statusBarStyle,
  String? actionBarColor,
  String? navigationBarColor,
});