UGrokItApiForms.UgiForms Class Reference

Overview

Static functions for use in U Grok It apps in Xamarin Forms

Class Methods

static new void AppOnCreate (bool handleScreenRotation, bool allowRotationOnTablet)
 Call this in your app's OnCreate() method (if you are not using UgiFormsApplication) More...
 
static new void AppOnStart ()
 Call this in your app's OnStart() method (if you are not using UgiFormsApplication) More...
 
static new void AppOnSleep ()
 Call this in your app's OnSleep() method (if you are not using UgiFormsApplication) More...
 
static new void AppOnResume ()
 Call this in your app's OnResume() method (if you are not using UgiFormsApplication) More...
 
- Class Methods inherited from UGrokItApiForms
static string GetEmbeddedResourceName (System.Reflection.Assembly assembly, string name)
 Gets the name of the embedded resource. More...
 
static string GetEmbeddedResourceName (string name)
 Gets the name of the embedded resource. More...
 
static void LogResources (System.Reflection.Assembly assembly)
 Logs the resources in an assembky (useful for debugging) More...
 
static void LogResources ()
 Logs the resources in the executing assembly More...
 

Properties

static double DisplayScale [get, set]
 Display's scale (higher value means higher pixel density) More...
 
static Size DisplaySizePixels [get]
 Display size in pixels More...
 
static Size DisplaySizeUnits [get]
 Display size in Xamarin Forms layout units More...
 
static double StatusBarHeightForLayout [get]
 Gets the status bar height for layout. More...
 
- Properties inherited from UGrokItApiForms
static bool HandleScreenRotation [get, set]
 Gets or sets a value indicating whether to handle screen rotations. More...
 
static bool AllowRotationOnTablet [get, set]
 Gets or sets a value indicating whether to allow any orientation on a tablet. More...
 
static Color NULL_COLOR [get]
 NULL Color (we must define one since Xamain.Forms does not have a NULL color value) More...
 
static Color UI_COLOR [get]
 Color used for UI More...
 

Instance Method Documentation

◆ AppOnCreate()

static new void UGrokItApiForms.UgiForms.AppOnCreate ( bool  handleScreenRotation,
bool  allowRotationOnTablet 
)
inlinestatic

Call this in your app's OnCreate() method (if you are not using UgiFormsApplication)

Parameters
handleScreenRotationtrue to handle screen rotations
allowRotationOnTablettrue to rotate to any orientation on a tablet

◆ AppOnStart()

static new void UGrokItApiForms.UgiForms.AppOnStart ( )
inlinestatic

Call this in your app's OnStart() method (if you are not using UgiFormsApplication)

◆ AppOnSleep()

static new void UGrokItApiForms.UgiForms.AppOnSleep ( )
inlinestatic

Call this in your app's OnSleep() method (if you are not using UgiFormsApplication)

◆ AppOnResume()

static new void UGrokItApiForms.UgiForms.AppOnResume ( )
inlinestatic

Call this in your app's OnResume() method (if you are not using UgiFormsApplication)

Property Documentation

◆ DisplayScale

double UGrokItApiForms.UgiForms.DisplayScale
staticgetset

Display's scale (higher value means higher pixel density)

The display scale

◆ DisplaySizePixels

Size UGrokItApiForms.UgiForms.DisplaySizePixels
staticget

Display size in pixels

The display size in pixels

◆ DisplaySizeUnits

Size UGrokItApiForms.UgiForms.DisplaySizeUnits
staticget

Display size in Xamarin Forms layout units

The display size in Xamarin Forms layout units

◆ StatusBarHeightForLayout

double UGrokItApiForms.UgiForms.StatusBarHeightForLayout
staticget

Gets the status bar height for layout.

The status bar height for layout.