Difference between revisions of "SANB C-sharp Code References"
Line 8: | Line 8: | ||
== C# public functions == | == C# public functions == | ||
− | < | + | <syntaxhighlight lang="c#"> |
+ | statusNavigation.Hide(); // Hide status and navigation bar | ||
− | + | statusNavigation.Show(); // Show status and navigation bar | |
− | + | 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 | |
+ | </syntaxhighlight> | ||
== C# public variables == | == C# public variables == |
Revision as of 00:28, 4 February 2021
Quick C# Code References
Using
using SaariTech.UI;
Component
MobileStatusNavigationBar statusNavigation;
C# public functions
statusNavigation.Hide(); // Hide status and navigation bar
statusNavigation.Show(); // Show status and navigation bar
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
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