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

From Manual
Jump to navigation Jump to search
Line 5: Line 5:
  
 
== Component ==
 
== Component ==
MobileStatusNavigationBar statusNavigation;
+
<code>MobileStatusNavigationBar statusNavigation;</code>
  
 
== C# public functions ==
 
== C# public functions ==
<syntaxhighlight lang="c#">
+
To hide status and navigation bar
statusNavigation.Hide(); // Hide status and navigation bar
 
  
statusNavigation.Show(); // Show status and navigation bar
+
<code>statusNavigation.Hide();</code>
  
statusNavigation.SetLightMode(BackgroundMode); // Set background color of bars to light
+
To show status and navigation bar
  
statusNavigation.SetDarkMode(BackgroundMode); // Set background color of bars to dark
+
<code>statusNavigation.Show();</code>
  
statusNavigation.SetColor(Color color); // Set bars background color
+
<code>statusNavigation.SetLightMode(BackgroundMode); // Set background color of bars to light</code>
  
statusNavigation.SetStatusLightMode(BackgroundMode); // Set background color of status bar to light
+
<code>statusNavigation.SetDarkMode(BackgroundMode); // Set background color of bars to dark</code>
  
statusNavigation.SetStatusDarkMode(); // Set background color of status bar to dark
+
<code>statusNavigation.SetColor(Color color); // Set bars background color</code>
  
statusNavigation.SetStatusColor(Color color); // Set status bar background color
+
<code>statusNavigation.SetStatusLightMode(BackgroundMode); // Set background color of status bar to light</code>
  
statusNavigation.SetStatusLightModeWithLightContent(); // Set background color of status bar to light
+
<code>statusNavigation.SetStatusDarkMode(); // Set background color of status bar to dark</code>
  
statusNavigation.SetStatusDarkModeWithLightContent(); // Set background color of status bar to dark
+
<code>statusNavigation.SetStatusColor(Color color); // Set status bar background color</code>
  
statusNavigation.SetStatusLightModeWithDarkContent(); // Set background color of status bar to light
+
<code>statusNavigation.SetStatusLightModeWithLightContent(); // Set background color of status bar to light</code>
  
statusNavigation.SetStatusDarkModeWithDarkContent(); // Set background color of status bar to dark
+
<code>statusNavigation.SetStatusDarkModeWithLightContent(); // Set background color of status bar to dark</code>
  
statusNavigation.SetNavigationLightMode(BackgroundMode); // Set background color of navigation bar to light
+
<code>statusNavigation.SetStatusLightModeWithDarkContent(); // Set background color of status bar to light</code>
  
statusNavigation.SetNavigationDarkMode(BackgroundMode); // Set background color of navigation bar to dark
+
<code>statusNavigation.SetStatusDarkModeWithDarkContent(); // Set background color of status bar to dark</code>
  
statusNavigation.SetNavigationColor(Color color); // Set navigation bar background color
+
<code>statusNavigation.SetNavigationLightMode(BackgroundMode); // Set background color of navigation bar to light</code>
  
statusNavigation.SetNavigationLightModeWithLightContent(); // Set background color of navigation bar to light
+
<code>statusNavigation.SetNavigationDarkMode(BackgroundMode); // Set background color of navigation bar to dark</code>
  
statusNavigation.SetNavigationDarkModeWithLightContent(); // Set background color of navigation bar to dark
+
<code>statusNavigation.SetNavigationColor(Color color); // Set navigation bar background color</code>
  
statusNavigation.SetNavigationLightModeWithDarkContent(); // Set background color of navigation bar to light
+
<code>statusNavigation.SetNavigationLightModeWithLightContent(); // Set background color of navigation bar to light</code>
  
statusNavigation.SetNavigationDarkModeWithDarkContent(); // Set background color of navigation bar to dark
+
<code>statusNavigation.SetNavigationDarkModeWithLightContent(); // Set background color of navigation bar to dark</code>
</syntaxhighlight>
+
 
 +
<code>statusNavigation.SetNavigationLightModeWithDarkContent(); // Set background color of navigation bar to light</code>
 +
 
 +
<code>statusNavigation.SetNavigationDarkModeWithDarkContent(); // Set background color of navigation bar to dark</code>
  
 
== C# public variables ==
 
== C# public variables ==

Revision as of 00:31, 4 February 2021

Quick C# Code References

Using

using SaariTech.UI;

Component

MobileStatusNavigationBar statusNavigation;

C# public functions

To hide status and navigation bar

statusNavigation.Hide();

To show status and navigation bar

statusNavigation.Show();

statusNavigation.SetLightMode(BackgroundMode); // Set background color of bars to light

statusNavigation.SetDarkMode(BackgroundMode); // Set background color of bars to dark

statusNavigation.SetColor(Color color); // Set bars background color

statusNavigation.SetStatusLightMode(BackgroundMode); // Set background color of status bar to light

statusNavigation.SetStatusDarkMode(); // Set background color of status bar to dark

statusNavigation.SetStatusColor(Color color); // Set status bar background color

statusNavigation.SetStatusLightModeWithLightContent(); // Set background color of status bar to light

statusNavigation.SetStatusDarkModeWithLightContent(); // Set background color of status bar to dark

statusNavigation.SetStatusLightModeWithDarkContent(); // Set background color of status bar to light

statusNavigation.SetStatusDarkModeWithDarkContent(); // Set background color of status bar to dark

statusNavigation.SetNavigationLightMode(BackgroundMode); // Set background color of navigation bar to light

statusNavigation.SetNavigationDarkMode(BackgroundMode); // Set background color of navigation bar to dark

statusNavigation.SetNavigationColor(Color color); // Set navigation bar background color

statusNavigation.SetNavigationLightModeWithLightContent(); // Set background color of navigation bar to light

statusNavigation.SetNavigationDarkModeWithLightContent(); // Set background color of navigation bar to dark

statusNavigation.SetNavigationLightModeWithDarkContent(); // Set background color of navigation bar to light

statusNavigation.SetNavigationDarkModeWithDarkContent(); // Set background color of navigation bar to dark

C# public variables

Color statusNavigation.statusLightModeBackgroundColor; // Status light mode color

Color statusNavigation.statusDarkModeBackgroundColor; // Status dark mode color

Color statusNavigation.navigationLightModeBackgroundColor; // Navigation light mode color

Color statusNavigation.navigationDarkModeBackgroundColor; // Navigation dark mode color

UnityEvent statusNavigation.backButtonOnClick; // Back button event

bool statusNavigation.startFullScreen; // Sets to fullscreen at Start

bool statusNavigation.startLightMode; // Sets to light mode at Start

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

float MobileStatusNavigationBar.StatusBarHeight; // Get Realtime Height of Status Bar

float MobileStatusNavigationBar.NavigationBarHeight; // Get Realtime Height of Navigation Bar

float MobileStatusNavigationBar.StatusBarHeight_STATIC; // Get Height of Status Bar

float MobileStatusNavigationBar.NavigationBarHeight_STATIC; // Get Height of Navigation Bar