Android.Content.ContextWrapper Members

The members of Android.Content.ContextWrapper are listed below.

See Also: Inherited members from Android.Content.Context

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
override
ApplicationContextContext. Return the context of the single, global Application object of the current process.
[read-only]
override
ApplicationInfoAndroid.Content.PM.ApplicationInfo. Return the full application info for this context's package.
[read-only]
override
AssetsAndroid.Content.Res.AssetManager. Return an AssetManager instance for your application's package.
[read-only]
BaseContextContext.
[read-only]
override
CacheDirJava.IO.File. Returns the absolute path to the application specific cache directory on the filesystem.
[read-only]
override
ClassLoaderJava.Lang.ClassLoader. Return a class loader you can use to retrieve classes in this package.
[read-only]
override
CodeCacheDirJava.IO.File. Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.
[read-only]
override
ContentResolverContentResolver. Return a ContentResolver instance for your application's package.
[read-only]
override
ExternalCacheDirJava.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]
override
FilesDirJava.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]
override
MainLooperAndroid.OS.Looper. Return the Looper for the main thread of the current process.
[read-only]
override
NoBackupFilesDirJava.IO.File. Returns the absolute path to the directory on the filesystem similar to Context.FilesDir.
[read-only]
override
ObbDirJava.IO.File. Return the primary external storage directory where this application's OBB files (if there are any) can be found.
[read-only]
override
PackageCodePathstring. Return the full path to this context's primary Android package.
[read-only]
override
PackageManagerAndroid.Content.PM.PackageManager. Return PackageManager instance to find global package information.
[read-only]
override
PackageNamestring. Return the name of this application's package.
[read-only]
override
PackageResourcePathstring. Return the full path to this context's primary Android package.
[read-only]
override
ResourcesAndroid.Content.Res.Resources. Return a Resources instance for your application's package.
[read-only]
override
ThemeAndroid.Content.Res.Resources.Theme. Return the Theme object associated with this Context.
[read-only]
override
WallpaperAndroid.Graphics.Drawables.Drawable.
[read-only]
override
WallpaperDesiredMinimumHeightint.
[read-only]
override
WallpaperDesiredMinimumWidthint.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
BindService(Intent, IServiceConnection, Bind) : bool
Connect to an application service, creating it if needed.
override
CheckCallingOrSelfPermission(string) : Android.Content.PM.Permission
Determine whether the calling process of an IPC or you have been granted a particular permission.
override
CheckCallingOrSelfUriPermission(Android.Net.Uri, ActivityFlags) : Android.Content.PM.Permission
Determine whether the calling process of an IPC or you has been granted permission to access a specific URI.
override
CheckCallingPermission(string) : Android.Content.PM.Permission
Determine whether the calling process of an IPC you are handling has been granted a particular permission.
override
CheckCallingUriPermission(Android.Net.Uri, ActivityFlags) : Android.Content.PM.Permission
Determine whether the calling process and user ID has been granted permission to access a specific URI.
override
CheckPermission(string, int, int) : Android.Content.PM.Permission
Determine whether the given permission is allowed for a particular process and user ID running in the system.
override
CheckUriPermission(Android.Net.Uri, int, int, ActivityFlags) : Android.Content.PM.Permission
Determine whether a particular process and user ID has been granted permission to access a specific URI.
override
CheckUriPermission(Android.Net.Uri, string, string, int, int, ActivityFlags) : Android.Content.PM.Permission
Check both a Uri and normal permission.
override
ClearWallpaper()
override
CreateConfigurationContext(Android.Content.Res.Configuration) : Context
Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.
override
CreateDisplayContext(Android.Views.Display) : Context
Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.
override
CreatePackageContext(string, PackageContextFlags) : Context
Return a new Context object for the given application name.
override
DatabaseList() : string[]
Returns an array of strings naming the private databases associated with this Context's application package.
override
DeleteDatabase(string) : bool
Delete an existing private SQLiteDatabase associated with this Context's application package.
override
DeleteFile(string) : bool
Delete the given private file associated with this Context's application package.
override
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.
override
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.
override
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.
override
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.
override
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.
override
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.
override
EnforceUriPermission(Android.Net.Uri, string, string, int, int, ActivityFlags, string)
Enforce both a Uri and normal permission.
override
FileList() : string[]
Returns an array of strings naming the private files associated with this Context's application package.
override
GetDatabasePath(string) : Java.IO.File
Returns the absolute path on the filesystem where a database created with Context.OpenOrCreateDatabase(string, Android.Content.FileCreationMode, Android.Content.FileCreationMode) is stored.
override
GetDir(string, FileCreationMode) : Java.IO.File
Retrieve, creating if needed, a new directory in which the application can place its own custom data files.
override
GetExternalCacheDirs() : Java.IO.File[]
Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns.
override
GetExternalFilesDir(string) : 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 persistent files it owns.
override
GetExternalFilesDirs(string) : Java.IO.File[]
Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns.
override
GetExternalMediaDirs() : Java.IO.File[]
Returns absolute paths to application-specific directories on all external storage devices where the application can place media files.
override
GetFileStreamPath(string) : Java.IO.File
Returns the absolute path on the filesystem where a file created with Context.OpenFileOutput(string, Android.Content.FileCreationMode) is stored.
override
GetObbDirs() : Java.IO.File[]
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.
override
GetSharedPreferences(string, FileCreationMode) : ISharedPreferences
Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values.
override
GetSystemService(string) : Java.Lang.Object
Return the handle to a system-level service by name.
override
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.
override
OpenFileInput(string) : System.IO.Stream
Open a private file associated with this Context's application package for reading.
override
OpenFileOutput(string, FileCreationMode) : System.IO.Stream
Open a private file associated with this Context's application package for writing.
override
OpenOrCreateDatabase(string, FileCreationMode, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory) : Android.Database.Sqlite.SQLiteDatabase
Open a new private SQLiteDatabase associated with this Context's application package.
override
OpenOrCreateDatabase(string, FileCreationMode, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory, Android.Database.IDatabaseErrorHandler) : Android.Database.Sqlite.SQLiteDatabase
Open a new private SQLiteDatabase associated with this Context's application package.
override
PeekWallpaper() : Android.Graphics.Drawables.Drawable
override
RegisterReceiver(BroadcastReceiver, IntentFilter) : Intent
Register a BroadcastReceiver to be run in the main activity thread.
override
RegisterReceiver(BroadcastReceiver, IntentFilter, string, Android.OS.Handler) : Intent
Register to receive intent broadcasts, to run in the context of scheduler.
override
RemoveStickyBroadcast(Intent)
override
RemoveStickyBroadcastAsUser(Intent, Android.OS.UserHandle)
override
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).
override
SendBroadcast(Intent)
Broadcast the given intent to all interested BroadcastReceivers.
override
SendBroadcast(Intent, string)
Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.
override
SendBroadcastAsUser(Intent, Android.OS.UserHandle)
Version of Context.SendBroadcast(Intent) that allows you to specify the user the broadcast will be sent to.
override
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.
override
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.
override
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.
override
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.
override
SendStickyBroadcast(Intent)
override
SendStickyBroadcastAsUser(Intent, Android.OS.UserHandle)
override
SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle)
override
SendStickyOrderedBroadcastAsUser(Intent, Android.OS.UserHandle, BroadcastReceiver, Android.OS.Handler, Android.App.Result, string, Android.OS.Bundle)
override
SetTheme(int)
Set the base theme for this context.
override
SetWallpaper(Android.Graphics.Bitmap)
override
SetWallpaper(System.IO.Stream)
override
StartActivities(Intent[])
Same as Context.StartActivities(Intent[], Android.OS.Bundle) with no options specified.
override
StartActivities(Intent[], Android.OS.Bundle)
Launch multiple new activities.
override
StartActivity(Intent)
Same as Context.StartActivity(Intent, Android.OS.Bundle) with no options specified.
override
StartActivity(Intent, Android.OS.Bundle)
Launch a new activity.
override
StartInstrumentation(ComponentName, string, Android.OS.Bundle) : bool
Start executing an Android.App.Instrumentation class.
override
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.
override
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, int, Android.OS.Bundle)
Like Context.StartActivity(Intent, Android.OS.Bundle), but taking a IntentSender to start.
override
StartService(Intent) : ComponentName
Request that a given application service be started.
override
StopService(Intent) : bool
Request that a given application service be stopped.
override
UnbindService(IServiceConnection)
Disconnect from an application service.
override
UnregisterReceiver(BroadcastReceiver)
Unregister a previously registered BroadcastReceiver.

Protected Methods

AttachBaseContext(Context)
Set the base context for this ContextWrapper.