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

From Manual
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 113: Line 113:
  
 
== C# public variables ==
 
== C# public variables ==
 +
'''Status'''
 +
 
Status light mode color:
 
Status light mode color:
  
Line 120: Line 122:
  
 
<code>Color statusNavigation.'''statusDarkModeBackgroundColor''';</code>
 
<code>Color statusNavigation.'''statusDarkModeBackgroundColor''';</code>
 +
 +
 +
'''Navigation'''
  
 
Navigation light mode color:
 
Navigation light mode color:
Line 128: Line 133:
  
 
<code>Color statusNavigation.'''navigationDarkModeBackgroundColor''';</code>
 
<code>Color statusNavigation.'''navigationDarkModeBackgroundColor''';</code>
 +
 +
 +
'''Other'''
  
 
Back button event:
 
Back button event:
Line 141: Line 149:
 
<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 ==
 +
'''Realtime data'''
 +
 
 
Get realtime height of status bar:
 
Get realtime height of status bar:
  
Line 149: Line 159:
  
 
<code>float MobileStatusNavigationBar.'''NavigationBarHeight''';</code>
 
<code>float MobileStatusNavigationBar.'''NavigationBarHeight''';</code>
 +
 +
 +
'''Static data'''
  
 
Get height of status bar:
 
Get height of status bar:

Latest revision as of 01:33, 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

Status light mode color:

Color statusNavigation.statusLightModeBackgroundColor;

Status dark mode color:

Color statusNavigation.statusDarkModeBackgroundColor;


Navigation

Navigation light mode color:

Color statusNavigation.navigationLightModeBackgroundColor;

Navigation dark mode color:

Color statusNavigation.navigationDarkModeBackgroundColor;


Other

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

Realtime data

Get realtime height of status bar:

float MobileStatusNavigationBar.StatusBarHeight;

Get realtime height of navigation bar:

float MobileStatusNavigationBar.NavigationBarHeight;


Static data

Get height of status bar:

float MobileStatusNavigationBar.StatusBarHeight_STATIC;

Get height of navigation bar:

float MobileStatusNavigationBar.NavigationBarHeight_STATIC;