ContextWrapper
ContextWrapper
Class
Definition
Proxying implementation of Context that simply delegates all of its calls to another Context.
[Android.Runtime.Register("android/content/ContextWrapper", ApiSince=1, DoNotGenerateAcw=true)]
public class ContextWrapper : Android.Content.Context
type ContextWrapper = class
inherit Context
- Inheritance
- Derived
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the
Constructors
ContextWrapper(Context) ContextWrapper(Context) | |
ContextWrapper(IntPtr, JniHandleOwnership) ContextWrapper(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
ApplicationContext ApplicationContext |
Return the context of the single, global Application object of the current process. |
ApplicationInfo ApplicationInfo |
Return the full application info for this context's package. |
Assets Assets |
Return an AssetManager instance for your application's package. |
BaseContext BaseContext | |
CacheDir CacheDir |
Returns the absolute path to the application specific cache directory on the filesystem. |
Class Class |
Returns the unique instance of Class that represents this object's class. (Inherited from Object) |
ClassLoader ClassLoader |
Return a class loader you can use to retrieve classes in this package. |
CodeCacheDir CodeCacheDir |
Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code. |
ContentResolver ContentResolver |
Return a ContentResolver instance for your application's package. |
DataDir DataDir | |
ExternalCacheDir ExternalCacheDir |
Returns the absolute path to the directory on the primary external filesystem (that is somewhere on ExternalStorageDirectory where the application can place cache files it owns. |
FilesDir FilesDir |
Returns the absolute path to the directory on the filesystem where files created with OpenFileOutput(String, FileCreationMode) are stored. |
Handle Handle |
The handle to the underlying Android instance. (Inherited from Object) |
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy | Inherited from Object |
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle | Inherited from Object |
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation | Inherited from Object |
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState | Inherited from Object |
IsDeviceProtectedStorage IsDeviceProtectedStorage | |
IsRestricted IsRestricted |
Indicates whether this Context is restricted. (Inherited from Context) |
JniIdentityHashCode JniIdentityHashCode | Inherited from Object |
JniPeerMembers JniPeerMembers | |
MainLooper MainLooper |
Return the Looper for the main thread of the current process. |
NoBackupFilesDir NoBackupFilesDir |
Returns the absolute path to the directory on the filesystem similar to FilesDir. |
ObbDir ObbDir |
Return the primary external storage directory where this application's OBB files (if there are any) can be found. |
PackageCodePath PackageCodePath |
Return the full path to this context's primary Android package. |
PackageManager PackageManager |
Return PackageManager instance to find global package information. |
PackageName PackageName |
Return the name of this application's package. |
PackageResourcePath PackageResourcePath |
Return the full path to this context's primary Android package. |
PeerReference PeerReference | Inherited from Object |
Resources Resources |
Return a Resources instance for your application's package. |
Theme Theme |
Return the Theme object associated with this Context. |
ThresholdClass ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Wallpaper Wallpaper | |
WallpaperDesiredMinimumHeight WallpaperDesiredMinimumHeight | |
WallpaperDesiredMinimumWidth WallpaperDesiredMinimumWidth |
Methods
Fields
AccessibilityService AccessibilityService |
Use with GetSystemService(String) to retrieve a AccessibilityManager for giving the user feedback for UI events through the registered event listeners. (Inherited from Context) |
AccountService AccountService |
Use with GetSystemService(String) to retrieve a AccountManager for receiving intents at a time of your choosing. (Inherited from Context) |
ActivityService ActivityService |
Use with GetSystemService(String) to retrieve a ActivityManager for interacting with the global system state. (Inherited from Context) |
AlarmService AlarmService |
Use with GetSystemService(String) to retrieve a AlarmManager for receiving intents at a time of your choosing. (Inherited from Context) |
AppOpsService AppOpsService |
Use with GetSystemService(String) to retrieve a AppOpsManager for tracking application operations on the device. (Inherited from Context) |
AppwidgetService AppwidgetService |
Use with GetSystemService(String) to retrieve a AppWidgetManager for accessing AppWidgets. (Inherited from Context) |
AudioService AudioService |
Use with GetSystemService(String) to retrieve a AudioManager for handling management of volume, ringer modes and audio routing. (Inherited from Context) |
BatteryService BatteryService |
Use with GetSystemService(String) to retrieve a BatteryManager for managing battery state. (Inherited from Context) |
BluetoothService BluetoothService |
Use with GetSystemService(String) to retrieve a BluetoothManager for using Bluetooth. (Inherited from Context) |
CameraService CameraService |
Use with GetSystemService(String) to retrieve a CameraManager for interacting with camera devices. (Inherited from Context) |
CaptioningService CaptioningService |
Use with GetSystemService(String) to retrieve a CaptioningManager for obtaining captioning properties and listening for changes in captioning preferences. (Inherited from Context) |
CarrierConfigService CarrierConfigService | Inherited from Context |
ClipboardService ClipboardService |
Use with GetSystemService(String) to retrieve a ClipboardManager for accessing and modifying ClipboardManager for accessing and modifying the contents of the global clipboard. (Inherited from Context) |
CompanionDeviceService CompanionDeviceService | Inherited from Context |
ConnectivityService ConnectivityService |
Use with GetSystemService(String) to retrieve a ConnectivityManager for handling management of network connections. (Inherited from Context) |
ConsumerIrService ConsumerIrService |
Use with GetSystemService(String) to retrieve a ConsumerIrManager for transmitting infrared signals from the device. (Inherited from Context) |
DevicePolicyService DevicePolicyService |
Use with GetSystemService(String) to retrieve a DevicePolicyManager for working with global device policy management. (Inherited from Context) |
DisplayService DisplayService |
Use with GetSystemService(String) to retrieve a DisplayManager for interacting with display devices. (Inherited from Context) |
DownloadService DownloadService |
Use with GetSystemService(String) to retrieve a DownloadManager for requesting HTTP downloads. (Inherited from Context) |
DropboxService DropboxService |
Use with GetSystemService(String) to retrieve a DropBoxManager instance for recording diagnostic logs. (Inherited from Context) |
FingerprintService FingerprintService | Inherited from Context |
HardwarePropertiesService HardwarePropertiesService | Inherited from Context |
InputMethodService InputMethodService |
Use with GetSystemService(String) to retrieve a InputMethodManager for accessing input methods. (Inherited from Context) |
InputService InputService |
Use with GetSystemService(String) to retrieve a InputManager for interacting with input devices. (Inherited from Context) |
JobSchedulerService JobSchedulerService |
Use with GetSystemService(String) to retrieve a JobScheduler instance for managing occasional background tasks. (Inherited from Context) |
KeyguardService KeyguardService |
Use with GetSystemService(String) to retrieve a NotificationManager for controlling keyguard. (Inherited from Context) |
LauncherAppsService LauncherAppsService |
Use with GetSystemService(String) to retrieve a LauncherApps for querying and monitoring launchable apps across profiles of a user. (Inherited from Context) |
LayoutInflaterService LayoutInflaterService |
Use with GetSystemService(String) to retrieve a LayoutInflater for inflating layout resources in this context. (Inherited from Context) |
LocationService LocationService |
Use with GetSystemService(String) to retrieve a LocationManager for controlling location updates. (Inherited from Context) |
MediaProjectionService MediaProjectionService |
Use with GetSystemService(String) to retrieve a MediaProjectionManager instance for managing media projection sessions. (Inherited from Context) |
MediaRouterService MediaRouterService |
Use with GetSystemService(String) to retrieve a MediaRouter for controlling and managing routing of media. (Inherited from Context) |
MediaSessionService MediaSessionService |
Use with GetSystemService(String) to retrieve a MediaSessionManager for managing media Sessions. (Inherited from Context) |
MidiService MidiService | Inherited from Context |
NetworkStatsService NetworkStatsService | Inherited from Context |
NfcService NfcService |
Use with GetSystemService(String) to retrieve a NfcManager for using NFC. (Inherited from Context) |
NotificationService NotificationService |
Use with GetSystemService(String) to retrieve a NotificationManager for informing the user of background events. (Inherited from Context) |
NsdService NsdService |
Use with GetSystemService(String) to retrieve a NsdManager for handling management of network service discovery (Inherited from Context) |
PowerService PowerService |
Use with GetSystemService(String) to retrieve a PowerManager for controlling power management, including "wake locks," which let you keep the device on while you're running long tasks. (Inherited from Context) |
PrintService PrintService |
PrintManager for printing and managing printers and print tasks. (Inherited from Context) |
ReceiverVisibleToInstantApps ReceiverVisibleToInstantApps | Inherited from Context |
RestrictionsService RestrictionsService |
Use with GetSystemService(String) to retrieve a RestrictionsManager for retrieving application restrictions and requesting permissions for restricted operations. (Inherited from Context) |
SearchService SearchService |
Use with GetSystemService(String) to retrieve a SearchManager for handling searches. (Inherited from Context) |
SensorService SensorService |
Use with GetSystemService(String) to retrieve a SensorManager for accessing sensors. (Inherited from Context) |
ShortcutService ShortcutService | Inherited from Context |
StorageService StorageService |
Use with GetSystemService(String) to retrieve a StorageManager for accessing system storage functions. (Inherited from Context) |
StorageStatsService StorageStatsService | Inherited from Context |
SystemHealthService SystemHealthService | Inherited from Context |
TelecomService TelecomService |
Use with GetSystemService(String) to retrieve a TelecomManager to manage telecom-related features of the device. (Inherited from Context) |
TelephonyService TelephonyService |
Use with GetSystemService(String) to retrieve a TelephonyManager for handling management the telephony features of the device. (Inherited from Context) |
TelephonySubscriptionService TelephonySubscriptionService | Inherited from Context |
TextClassificationService TextClassificationService | Inherited from Context |
TextServicesManagerService TextServicesManagerService |
Use with GetSystemService(String) to retrieve a TextServicesManager for accessing text services. (Inherited from Context) |
TvInputService TvInputService |
Use with GetSystemService(String) to retrieve a TvInputManager for interacting with TV inputs on the device. (Inherited from Context) |
UiModeService UiModeService |
Use with GetSystemService(String) to retrieve a UiModeManager for controlling UI modes. (Inherited from Context) |
UsageStatsService UsageStatsService | Inherited from Context |
UsbService UsbService |
Use with GetSystemService(String) to retrieve a UsbManager for access to USB devices (as a USB host) and for controlling this device's behavior as a USB device. (Inherited from Context) |
UserService UserService |
Use with GetSystemService(String) to retrieve a UserManager for managing users on devices that support multiple users. (Inherited from Context) |
VibratorService VibratorService |
Use with GetSystemService(String) to retrieve a Vibrator for interacting with the vibration hardware. (Inherited from Context) |
WallpaperService WallpaperService |
Use with GetSystemService(String) to retrieve a com.android.server. (Inherited from Context) |
WifiAwareService WifiAwareService | Inherited from Context |
WifiP2pService WifiP2pService |
Use with GetSystemService(String) to retrieve a WifiP2pManager for handling management of Wi-Fi peer-to-peer connections. (Inherited from Context) |
WifiService WifiService |
Use with GetSystemService(String) to retrieve a WifiManager for handling management of Wi-Fi access. (Inherited from Context) |
WindowService WindowService |
Use with GetSystemService(String) to retrieve a IWindowManager for accessing the system's window manager. (Inherited from Context) |
Explicit Interface Implementations
Extension Methods
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable) |