Difference between revisions of "SANB C-sharp Code References"

From Manual
Jump to navigation Jump to search
Line 13: Line 13:
 
To hide status and navigation bar:
 
To hide status and navigation bar:
  
<code>statusNavigation.Hide();</code>
+
<code>statusNavigation.'''Hide'''();</code>
  
 
To show status and navigation bar:
 
To show status and navigation bar:
  
<code>statusNavigation.Show();</code>
+
<code>statusNavigation.'''Show'''();</code>
  
  
Line 24: Line 24:
 
To set background color of bars to light:
 
To set background color of bars to light:
  
<code>statusNavigation.SetLightMode(BackgroundMode);</code>
+
<code>statusNavigation.'''SetLightMode'''(BackgroundMode);</code>
  
 
To set background color of bars to dark:
 
To set background color of bars to dark:
  
<code>statusNavigation.SetDarkMode(BackgroundMode);</code>
+
<code>statusNavigation.'''SetDarkMode'''(BackgroundMode);</code>
  
 
To set bars background color:
 
To set bars background color:
  
<code>statusNavigation.SetColor(Color color);</code>
+
<code>statusNavigation.'''SetColor'''(Color color);</code>
  
 
To set background color of bars to light with light content:
 
To set background color of bars to light with light content:
  
<code>statusNavigation.SetLightModeWithLightContent();</code>
+
<code>statusNavigation.'''SetLightModeWithLightContent'''();</code>
  
 
To set background color of bars to dark with light content:
 
To set background color of bars to dark with light content:
  
<code>statusNavigation.SetDarkModeWithLightContent();</code>
+
<code>statusNavigation.'''SetDarkModeWithLightContent'''();</code>
  
 
To set background color of bars to light with dark content:
 
To set background color of bars to light with dark content:
  
<code>statusNavigation.SetLightModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetLightModeWithDarkContent'''();</code>
  
 
To set background color of bars to dark with dark content:
 
To set background color of bars to dark with dark content:
  
<code>statusNavigation.SetDarkModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetDarkModeWithDarkContent'''();</code>
  
  
Line 55: Line 55:
 
To set background color of status bar to light:
 
To set background color of status bar to light:
  
<code>statusNavigation.SetStatusLightMode(BackgroundMode);</code>
+
<code>statusNavigation.'''SetStatusLightMode'''(BackgroundMode);</code>
  
 
To set background color of status bar to dark:
 
To set background color of status bar to dark:
  
<code>statusNavigation.SetStatusDarkMode();</code>
+
<code>statusNavigation.'''SetStatusDarkMode'''();</code>
  
 
To set status bar background color:
 
To set status bar background color:
  
<code>statusNavigation.SetStatusColor(Color color);</code>
+
<code>statusNavigation.'''SetStatusColor'''(Color color);</code>
  
 
To set background color of status bar to light with light content:
 
To set background color of status bar to light with light content:
  
<code>statusNavigation.SetStatusLightModeWithLightContent();</code>
+
<code>statusNavigation.'''SetStatusLightModeWithLightContent'''();</code>
  
 
To set background color of status bar to dark with light content:
 
To set background color of status bar to dark with light content:
  
<code>statusNavigation.SetStatusDarkModeWithLightContent();</code>
+
<code>statusNavigation.'''SetStatusDarkModeWithLightContent'''();</code>
  
 
To set background color of status bar to light with dark content:
 
To set background color of status bar to light with dark content:
  
<code>statusNavigation.SetStatusLightModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetStatusLightModeWithDarkContent'''();</code>
  
 
To set background color of status bar to dark with dark content:
 
To set background color of status bar to dark with dark content:
  
<code>statusNavigation.SetStatusDarkModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetStatusDarkModeWithDarkContent'''();</code>
  
  
Line 86: Line 86:
 
To set background color of navigation bar to light:
 
To set background color of navigation bar to light:
  
<code>statusNavigation.SetNavigationLightMode(BackgroundMode);</code>
+
<code>statusNavigation.'''SetNavigationLightMode'''(BackgroundMode);</code>
  
 
To set background color of navigation bar to dark:
 
To set background color of navigation bar to dark:
  
<code>statusNavigation.SetNavigationDarkMode(BackgroundMode);</code>
+
<code>statusNavigation.'''SetNavigationDarkMode'''(BackgroundMode);</code>
  
 
To set navigation bar background color:
 
To set navigation bar background color:
  
<code>statusNavigation.SetNavigationColor(Color color);</code>
+
<code>statusNavigation.'''SetNavigationColor'''(Color color);</code>
  
 
To set background color of navigation bar to light with light content:
 
To set background color of navigation bar to light with light content:
  
<code>statusNavigation.SetNavigationLightModeWithLightContent();</code>
+
<code>statusNavigation.'''SetNavigationLightModeWithLightContent'''();</code>
  
 
To set background color of navigation bar to dark with light content:
 
To set background color of navigation bar to dark with light content:
  
<code>statusNavigation.SetNavigationDarkModeWithLightContent();</code>
+
<code>statusNavigation.'''SetNavigationDarkModeWithLightContent'''();</code>
  
 
To set background color of navigation bar to light with dark content:
 
To set background color of navigation bar to light with dark content:
  
<code>statusNavigation.SetNavigationLightModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetNavigationLightModeWithDarkContent'''();</code>
  
 
To set background color of navigation bar to dark with dark content:
 
To set background color of navigation bar to dark with dark content:
  
<code>statusNavigation.SetNavigationDarkModeWithDarkContent();</code>
+
<code>statusNavigation.'''SetNavigationDarkModeWithDarkContent'''();</code>
  
 
== C# public variables ==
 
== C# public variables ==
 
Status light mode color:
 
Status light mode color:
  
<code>Color statusNavigation.statusLightModeBackgroundColor;</code>
+
<code>Color statusNavigation.'''statusLightModeBackgroundColor''';</code>
  
 
Status dark mode color:
 
Status dark mode color:
  
<code>Color statusNavigation.statusDarkModeBackgroundColor;</code>
+
<code>Color statusNavigation.'''statusDarkModeBackgroundColor''';</code>
  
 
Navigation light mode color:
 
Navigation light mode color:
  
<code>Color statusNavigation.navigationLightModeBackgroundColor;</code>
+
<code>Color statusNavigation.'''navigationLightModeBackgroundColor''';</code>
  
 
Navigation dark mode color:
 
Navigation dark mode color:
  
<code>Color statusNavigation.navigationDarkModeBackgroundColor;</code>
+
<code>Color statusNavigation.'''navigationDarkModeBackgroundColor''';</code>
  
 
Back button event:
 
Back button event:
  
<code>UnityEvent statusNavigation.backButtonOnClick;</code>
+
<code>UnityEvent statusNavigation.'''backButtonOnClick''';</code>
  
 
Sets to fullscreen at Start
 
Sets to fullscreen at Start
  
<code>bool statusNavigation.startFullScreen;</code>
+
<code>bool statusNavigation.'''startFullScreen''';</code>
  
 
Sets to light mode at Start
 
Sets to light mode at Start
  
<code>bool statusNavigation.startLightMode;</code>
+
<code>bool statusNavigation.'''startLightMode''';</code>
  
 
== C# internal static variables generated by the component Mobile Status Navigation Bar ==
 
== C# internal static variables generated by the component Mobile Status Navigation Bar ==
 
Get realtime height of status bar:
 
Get realtime height of status bar:
  
<code>float MobileStatusNavigationBar.StatusBarHeight;</code>
+
<code>float MobileStatusNavigationBar.'''StatusBarHeight''';</code>
  
 
Get realtime height of navigation bar:
 
Get realtime height of navigation bar:
  
<code>float MobileStatusNavigationBar.NavigationBarHeight;</code>
+
<code>float MobileStatusNavigationBar.'''NavigationBarHeight''';</code>
  
 
Get height of status bar:
 
Get height of status bar:
  
<code>float MobileStatusNavigationBar.StatusBarHeight_STATIC;</code>
+
<code>float MobileStatusNavigationBar.'''StatusBarHeight_STATIC''';</code>
  
 
Get height of navigation bar:
 
Get height of navigation bar:
  
<code>float MobileStatusNavigationBar.NavigationBarHeight_STATIC;</code>
+
<code>float MobileStatusNavigationBar.'''NavigationBarHeight_STATIC''';</code>

Revision as of 00:53, 4 February 2021

Quick C# Code References

Using

using SaariTech.UI;

Component

MobileStatusNavigationBar statusNavigation;

Enum

BackgroundMode have Auto, Light and Dark

C# public functions

To hide status and navigation bar:

statusNavigation.Hide();

To show status and navigation bar:

statusNavigation.Show();


Status & Navigation

To set background color of bars to light:

statusNavigation.SetLightMode(BackgroundMode);

To set background color of bars to dark:

statusNavigation.SetDarkMode(BackgroundMode);

To set bars background color:

statusNavigation.SetColor(Color color);

To set background color of bars to light with light content:

statusNavigation.SetLightModeWithLightContent();

To set background color of bars to dark with light content:

statusNavigation.SetDarkModeWithLightContent();

To set background color of bars to light with dark content:

statusNavigation.SetLightModeWithDarkContent();

To set background color of bars to dark with dark content:

statusNavigation.SetDarkModeWithDarkContent();


Status

To set background color of status bar to light:

statusNavigation.SetStatusLightMode(BackgroundMode);

To set background color of status bar to dark:

statusNavigation.SetStatusDarkMode();

To set status bar background color:

statusNavigation.SetStatusColor(Color color);

To set background color of status bar to light with light content:

statusNavigation.SetStatusLightModeWithLightContent();

To set background color of status bar to dark with light content:

statusNavigation.SetStatusDarkModeWithLightContent();

To set background color of status bar to light with dark content:

statusNavigation.SetStatusLightModeWithDarkContent();

To set background color of status bar to dark with dark content:

statusNavigation.SetStatusDarkModeWithDarkContent();


Navigation

To set background color of navigation bar to light:

statusNavigation.SetNavigationLightMode(BackgroundMode);

To set background color of navigation bar to dark:

statusNavigation.SetNavigationDarkMode(BackgroundMode);

To set navigation bar background color:

statusNavigation.SetNavigationColor(Color color);

To set background color of navigation bar to light with light content:

statusNavigation.SetNavigationLightModeWithLightContent();

To set background color of navigation bar to dark with light content:

statusNavigation.SetNavigationDarkModeWithLightContent();

To set background color of navigation bar to light with dark content:

statusNavigation.SetNavigationLightModeWithDarkContent();

To set background color of navigation bar to dark with dark content:

statusNavigation.SetNavigationDarkModeWithDarkContent();

C# public variables

Status light mode color:

Color statusNavigation.statusLightModeBackgroundColor;

Status dark mode color:

Color statusNavigation.statusDarkModeBackgroundColor;

Navigation light mode color:

Color statusNavigation.navigationLightModeBackgroundColor;

Navigation dark mode color:

Color statusNavigation.navigationDarkModeBackgroundColor;

Back button event:

UnityEvent statusNavigation.backButtonOnClick;

Sets to fullscreen at Start

bool statusNavigation.startFullScreen;

Sets to light mode at Start

bool statusNavigation.startLightMode;

C# internal static variables generated by the component Mobile Status Navigation Bar

Get realtime height of status bar:

float MobileStatusNavigationBar.StatusBarHeight;

Get realtime height of navigation bar:

float MobileStatusNavigationBar.NavigationBarHeight;

Get height of status bar:

float MobileStatusNavigationBar.StatusBarHeight_STATIC;

Get height of navigation bar:

float MobileStatusNavigationBar.NavigationBarHeight_STATIC;