The members of Android.Content.Context are listed below.
See Also: Inherited members from Java.Lang.Object
Context() |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
[read-only] abstract | ApplicationContext | Context. Return the context of the single, global Application object of the current process. |
[read-only] abstract | ApplicationInfo | Android.Content.PM.ApplicationInfo. Return the full application info for this context's package. |
[read-only] abstract | Assets | Android.Content.Res.AssetManager. Return an AssetManager instance for your application's package. |
[read-only] abstract | CacheDir | Java.IO.File. Returns the absolute path to the application specific cache directory on the filesystem. |
[read-only] abstract | ClassLoader | Java.Lang.ClassLoader. Return a class loader you can use to retrieve classes in this package. |
[read-only] abstract | CodeCacheDir | Java.IO.File. Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code. |
[read-only] abstract | ContentResolver | ContentResolver. Return a ContentResolver instance for your application's package. |
[read-only] abstract | ExternalCacheDir | Java.IO.File. Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Android.OS.Environment.ExternalStorageDirectory where the application can place cache files it owns. |
[read-only] abstract | FilesDir | Java.IO.File. Returns the absolute path to the directory on the filesystem where files created with Context.OpenFileOutput(string, Android.Content.FileCreationMode) are stored. |
[read-only] | IsRestricted | bool. Indicates whether this Context is restricted. |
[read-only] abstract | MainLooper | Android.OS.Looper. Return the Looper for the main thread of the current process. |
[read-only] abstract | NoBackupFilesDir | Java.IO.File. Returns the absolute path to the directory on the filesystem similar to Context.FilesDir. |
[read-only] abstract | ObbDir | Java.IO.File. Return the primary external storage directory where this application's OBB files (if there are any) can be found. |
[read-only] abstract | PackageCodePath | string. Return the full path to this context's primary Android package. |
[read-only] abstract | PackageManager | Android.Content.PM.PackageManager. Return PackageManager instance to find global package information. |
[read-only] abstract | PackageName | string. Return the name of this application's package. |
[read-only] abstract | PackageResourcePath | string. Return the full path to this context's primary Android package. |
[read-only] abstract | Resources | Android.Content.Res.Resources. Return a Resources instance for your application's package. |
[read-only] abstract | Theme | Android.Content.Res.Resources.Theme. Return the Theme object associated with this Context. |
[read-only] abstract | Wallpaper | Android.Graphics.Drawables.Drawable. |
[read-only] abstract | WallpaperDesiredMinimumHeight | int. |
[read-only] abstract | WallpaperDesiredMinimumWidth | int. |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
abstract | BindService(Intent, IServiceConnection, Bind)Connect to an application service, creating it if needed. | |
abstract | CheckCallingOrSelfPermission(string)Determine whether the calling process of an IPC or you have been granted a particular permission. | |
abstract | CheckCallingOrSelfUriPermission(Android.Net.Uri, ActivityFlags)Determine whether the calling process of an IPC or you has been granted permission to access a specific URI. | |
abstract | CheckCallingPermission(string)Determine whether the calling process of an IPC you are handling has been granted a particular permission. | |
abstract | CheckCallingUriPermission(Android.Net.Uri, ActivityFlags)Determine whether the calling process and user ID has been granted permission to access a specific URI. | |
abstract | CheckPermission(string, int, int)Determine whether the given permission is allowed for a particular process and user ID running in the system. | |
abstract | CheckUriPermission(Android.Net.Uri, int, int, ActivityFlags)Determine whether a particular process and user ID has been granted permission to access a specific URI. | |
abstract | CheckUriPermission(Android.Net.Uri, string, string, int, int, ActivityFlags)Check both a Uri and normal permission. | |
abstract | ClearWallpaper() | |
abstract | CreateConfigurationContext(Android.Content.Res.Configuration)Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration. | |
abstract | CreateDisplayContext(Android.Views.Display)Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display. | |
abstract | CreatePackageContext(string, PackageContextFlags)Return a new Context object for the given application name. | |
abstract | DatabaseList()Returns an array of strings naming the private databases associated with this Context's application package. | |
abstract | DeleteDatabase(string)Delete an existing private SQLiteDatabase associated with this Context's application package. | |
abstract | DeleteFile(string)Delete the given private file associated with this Context's application package. | |
abstract | EnforceCallingOrSelfPermission(string, string)If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a Java.Lang.SecurityException. | |
abstract | EnforceCallingOrSelfUriPermission(Android.Net.Uri, ActivityFlags, string)If the calling process of an IPC or you has not been granted permission to access a specific URI, throw Java.Lang.SecurityException. | |
abstract | EnforceCallingPermission(string, string)If the calling process of an IPC you are handling has not been granted a particular permission, throw a Java.Lang.SecurityException. | |
abstract | EnforceCallingUriPermission(Android.Net.Uri, ActivityFlags, string)If the calling process and user ID has not been granted permission to access a specific URI, throw Java.Lang.SecurityException. | |
abstract | EnforcePermission(string, int, int, string)If the given permission is not allowed for a particular process and user ID running in the system, throw a Java.Lang.SecurityException. | |
abstract | EnforceUriPermission(Android.Net.Uri, int, int, ActivityFlags, string)If a particular process and user ID has not been granted permission to access a specific URI, throw Java.Lang.SecurityException. | |
abstract | EnforceUriPermission(Android.Net.Uri, string, string, int, int, ActivityFlags, string)Enforce both a Uri and normal permission. | |
abstract | FileList()Returns an array of strings naming the private files associated with this Context's application package. | |
abstract | GetDatabasePath(string)Returns the absolute path on the filesystem where a database created with Context.OpenOrCreateDatabase(string, Android.Content.FileCreationMode, Android.Content.FileCreationMode) is stored. | |
abstract | GetDir(string, FileCreationMode)Retrieve, creating if needed, a new directory in which the application can place its own custom data files. | |
GetDrawable(int)Return a drawable object associated with a particular resource ID and styled for the current theme. | ||
abstract | GetExternalCacheDirs()Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns. | |
abstract | GetExternalFilesDir(string)Returns the absolute path to the directory on the primary external filesystem (that is somewhere on Android.OS.Environment.ExternalStorageDirectory) where the application can place persistent files it owns. | |
abstract | GetExternalFilesDirs(string)Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns. | |
abstract | GetExternalMediaDirs()Returns absolute paths to application-specific directories on all external storage devices where the application can place media files. | |
abstract | GetFileStreamPath(string)Returns the absolute path on the filesystem where a file created with Context.OpenFileOutput(string, Android.Content.FileCreationMode) is stored. | |
abstract | GetObbDirs()Returns absolute paths to application-specific directories on all external storage devices where the application's OBB files (if there are any) can be found. | |
abstract | GetSharedPreferences(string, FileCreationMode)Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values. | |
GetString(int)Return a localized string from the application's package's default string table. | ||
GetString(int, params Java.Lang.Object[])Documentation for this section has not yet been entered. | ||
abstract | GetSystemService(string)Return the handle to a system-level service by name. | |
GetText(int)Documentation for this section has not yet been entered. | ||
GetTextFormatted(int)Return a localized, styled CharSequence from the application's package's default string table. | ||
abstract | GrantUriPermission(string, Android.Net.Uri, ActivityFlags)Grant permission to access a specific Uri to another package, regardless of whether that package has general permission to access the Uri's content provider. | |
ObtainStyledAttributes(int[])Retrieve styled attribute information in this Context's theme. | ||
ObtainStyledAttributes(Android.Util.IAttributeSet, int[])Retrieve styled attribute information in this Context's theme. | ||
ObtainStyledAttributes(int, int[])Retrieve styled attribute information in this Context's theme. | ||
ObtainStyledAttributes(Android.Util.IAttributeSet, int[], int, int)Retrieve styled attribute information in this Context's theme. | ||
abstract | OpenFileInput(string)Open a private file associated with this Context's application package for reading. | |
abstract | OpenFileOutput(string, FileCreationMode)Open a private file associated with this Context's application package for writing. | |
abstract | OpenOrCreateDatabase(string, FileCreationMode, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory)Open a new private SQLiteDatabase associated with this Context's application package. | |
abstract | OpenOrCreateDatabase(string, FileCreationMode, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.IDatabaseErrorHandler)Open a new private SQLiteDatabase associated with this Context's application package. | |
abstract | PeekWallpaper() | |
RegisterComponentCallbacks(IComponentCallbacks)Add a new Android.Content.IComponentCallbacks to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called. | ||
abstract | RegisterReceiver(BroadcastReceiver, IntentFilter)Register a BroadcastReceiver to be run in the main activity thread. | |
abstract | RegisterReceiver(BroadcastReceiver, IntentFilter, string, Android.OS.Handler)Register to receive intent broadcasts, to run in the context of scheduler. | |
abstract | RemoveStickyBroadcast(Intent) | |
abstract | RemoveStickyBroadcastAsUser(Intent, Android.OS.UserHandle) | |
abstract | RevokeUriPermission(Android.Net.Uri, ActivityFlags)Remove all permissions to access a particular content provider Uri that were previously added with Context.GrantUriPermission(string, Android.Net.Uri, Android.Net.Uri). | |
abstract | SendBroadcast(Intent)Broadcast the given intent to all interested BroadcastReceivers. | |
abstract | SendBroadcast(Intent, string)Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced. | |
abstract | SendBroadcastAsUser(Intent, Android.OS.UserHandle)Version of Context.SendBroadcast(Intent) that allows you to specify the user the broadcast will be sent to. | |
abstract | SendBroadcastAsUser(Intent, Android.OS.UserHandle, string)Version of Context.SendBroadcast(Intent, System.String) that allows you to specify the user the broadcast will be sent to. | |
abstract | SendOrderedBroadcast(Intent, string)Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers. | |
abstract | SendOrderedBroadcast(Intent, string, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle)Version of Context.SendBroadcast(Intent) that allows you to receive data back from the broadcast. | |
abstract | SendOrderedBroadcastAsUser(Intent, Android.OS.UserHandle, string, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle)Version of Context.SendOrderedBroadcast(Intent, System.String, System.String, System.String, System.String, System.String, System.String) that allows you to specify the user the broadcast will be sent to. | |
abstract | SendStickyBroadcast(Intent) | |
abstract | SendStickyBroadcastAsUser(Intent, Android.OS.UserHandle) | |
abstract | SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle) | |
abstract | SendStickyOrderedBroadcastAsUser(Intent, Android.OS.UserHandle, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle) | |
abstract | SetTheme(int)Set the base theme for this context. | |
abstract | SetWallpaper(Android.Graphics.Bitmap) | |
abstract | SetWallpaper(System.IO.Stream) | |
abstract | StartActivities(Intent[])Same as Context.StartActivities(Intent[], Android.OS.Bundle) with no options specified. | |
abstract | StartActivities(Intent[], Android.OS.Bundle)Launch multiple new activities. | |
abstract | StartActivity(Intent)Same as Context.StartActivity(Intent, Android.OS.Bundle) with no options specified. | |
StartActivity(Type)Documentation for this section has not yet been entered. | ||
abstract | StartActivity(Intent, Android.OS.Bundle)Launch a new activity. | |
abstract | StartInstrumentation(ComponentName, string, Android.OS.Bundle)Start executing an Android.App.Instrumentation class. | |
abstract | StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, int)Same as Context.StartIntentSender(IntentSender, Android.Content.Intent, Android.Content.Intent, Android.Content.Intent, Android.Content.Intent, Android.Content.Intent) with no options specified. | |
abstract | StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, int, Android.OS.Bundle)Like Context.StartActivity(Intent, Android.OS.Bundle), but taking a IntentSender to start. | |
abstract | StartService(Intent)Request that a given application service be started. | |
abstract | StopService(Intent)Request that a given application service be stopped. | |
abstract | UnbindService(IServiceConnection)Disconnect from an application service. | |
UnregisterComponentCallbacks(IComponentCallbacks)Remove a Android.Content.IComponentCallbacks object that was previously registered with Context.RegisterComponentCallbacks(IComponentCallbacks). | ||
abstract | UnregisterReceiver(BroadcastReceiver)Unregister a previously registered BroadcastReceiver. |