Class AndroidMainActivity
Inheritance
System.Object
AndroidMainActivity
Assembly: SensusAndroid.dll
Syntax
public class AndroidMainActivity : FormsAppCompatActivity
Constructors
AndroidMainActivity()
Declaration
public AndroidMainActivity()
Methods
GetActivityResultAsync(Intent, AndroidActivityResultRequestCode, Action<Tuple<Result, Intent>>)
Declaration
public void GetActivityResultAsync(Intent intent, AndroidActivityResultRequestCode requestCode, Action<Tuple<Result, Intent>> callback)
Parameters
Type |
Name |
Description |
Android.Content.Intent |
intent |
|
AndroidActivityResultRequestCode |
requestCode |
|
System.Action<System.Tuple<Android.App.Result, Android.Content.Intent>> |
callback |
|
OnActivityResult(Int32, Result, Intent)
Declaration
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
Parameters
Type |
Name |
Description |
System.Int32 |
requestCode |
|
Android.App.Result |
resultCode |
|
Android.Content.Intent |
data |
|
OnCreate(Bundle)
Declaration
protected override void OnCreate(Bundle savedInstanceState)
Parameters
Type |
Name |
Description |
Android.OS.Bundle |
savedInstanceState |
|
OnDestroy()
Declaration
protected override void OnDestroy()
OnNewIntent(Intent)
Declaration
protected override void OnNewIntent(Intent intent)
Parameters
Type |
Name |
Description |
Android.Content.Intent |
intent |
|
OnPause()
Declaration
protected override void OnPause()
OnRequestPermissionsResult(Int32, String[], Permission[])
Declaration
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
Parameters
Type |
Name |
Description |
System.Int32 |
requestCode |
|
System.String[] |
permissions |
|
Android.Content.PM.Permission[] |
grantResults |
|
OnResume()
Declaration
protected override void OnResume()
OnStart()
Declaration
protected override void OnStart()
OnStop()
Declaration
protected override void OnStop()
OnWindowFocusChanged(Boolean)
Declaration
public override void OnWindowFocusChanged(bool hasFocus)
Parameters
Type |
Name |
Description |
System.Boolean |
hasFocus |
|