InputMethodService InputMethodService Class

Definition

InputMethodService provides a standard implementation of an InputMethod, which final implementations can derive from and customize.

[Android.Runtime.Register("android/inputmethodservice/InputMethodService", ApiSince=3, DoNotGenerateAcw=true)]
public class InputMethodService : Android.InputMethodServices.AbstractInputMethodService
type InputMethodService = class
    inherit AbstractInputMethodService
Inheritance
Attributes

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

InputMethodService() InputMethodService()
InputMethodService(IntPtr, JniHandleOwnership) InputMethodService(IntPtr, JniHandleOwnership)

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

Properties

Application Application

Return the application that owns this service.

(Inherited from Service)
ApplicationContext ApplicationContext

Return the context of the single, global Application object of the current process.

(Inherited from ContextWrapper)
ApplicationInfo ApplicationInfo

Return the full application info for this context's package.

(Inherited from ContextWrapper)
Assets Assets

Return an AssetManager instance for your application's package.

(Inherited from ContextWrapper)
BackDisposition BackDisposition
BaseContext BaseContext Inherited from ContextWrapper
CacheDir CacheDir

Returns the absolute path to the application specific cache directory on the filesystem.

(Inherited from ContextWrapper)
CandidatesHiddenVisibility CandidatesHiddenVisibility

Returns the visibility mode (either Invisible or Gone) of the candidates view when it is not shown.

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.

(Inherited from ContextWrapper)
CodeCacheDir CodeCacheDir

Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.

(Inherited from ContextWrapper)
ContentResolver ContentResolver

Return a ContentResolver instance for your application's package.

(Inherited from ContextWrapper)
CurrentInputBinding CurrentInputBinding

Return the currently active InputBinding for the input method, or null if there is none.

CurrentInputConnection CurrentInputConnection

Retrieve the currently active InputConnection that is bound to the input method, or null if there is none.

CurrentInputEditorInfo CurrentInputEditorInfo
CurrentInputStarted CurrentInputStarted
DataDir DataDir Inherited from ContextWrapper
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.

(Inherited from ContextWrapper)
ExtractViewShown ExtractViewShown

Return whether the fullscreen extract view is shown.

FilesDir FilesDir

Returns the absolute path to the directory on the filesystem where files created with OpenFileOutput(String, FileCreationMode) are stored.

(Inherited from ContextWrapper)
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
InputMethodWindowRecommendedHeight InputMethodWindowRecommendedHeight
IsDeviceProtectedStorage IsDeviceProtectedStorage Inherited from ContextWrapper
IsFullscreenMode IsFullscreenMode

Return whether the input method is currently running in fullscreen mode.

IsInputViewShown IsInputViewShown

Return whether the soft input view is currently shown to the user.

IsRestricted IsRestricted

Indicates whether this Context is restricted.

(Inherited from Context)
IsShowInputRequested IsShowInputRequested

Returns true if we have been asked to show our input view.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
KeyDispatcherState KeyDispatcherState

Return the global KeyEvent.DispatcherState for used for processing events from the target application.

(Inherited from AbstractInputMethodService)
LayoutInflater LayoutInflater
MainLooper MainLooper

Return the Looper for the main thread of the current process.

(Inherited from ContextWrapper)
MaxWidth MaxWidth

Return the maximum width, in pixels, available the input method.

NoBackupFilesDir NoBackupFilesDir

Returns the absolute path to the directory on the filesystem similar to FilesDir.

(Inherited from ContextWrapper)
ObbDir ObbDir

Return the primary external storage directory where this application's OBB files (if there are any) can be found.

(Inherited from ContextWrapper)
PackageCodePath PackageCodePath

Return the full path to this context's primary Android package.

(Inherited from ContextWrapper)
PackageManager PackageManager

Return PackageManager instance to find global package information.

(Inherited from ContextWrapper)
PackageName PackageName

Return the name of this application's package.

(Inherited from ContextWrapper)
PackageResourcePath PackageResourcePath

Return the full path to this context's primary Android package.

(Inherited from ContextWrapper)
PeerReference PeerReference Inherited from Object
Resources Resources

Return a Resources instance for your application's package.

(Inherited from ContextWrapper)
Theme Theme

Return the Theme object associated with this Context.

(Inherited from ContextWrapper)
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 Inherited from ContextWrapper
WallpaperDesiredMinimumHeight WallpaperDesiredMinimumHeight Inherited from ContextWrapper
WallpaperDesiredMinimumWidth WallpaperDesiredMinimumWidth Inherited from ContextWrapper
Window Window

Methods

AttachBaseContext(Context) AttachBaseContext(Context)

Set the base context for this ContextWrapper.

(Inherited from ContextWrapper)
BindService(Intent, IServiceConnection, Bind) BindService(Intent, IServiceConnection, Bind)

Connect to an application service, creating it if needed.

(Inherited from ContextWrapper)
CheckCallingOrSelfPermission(String) CheckCallingOrSelfPermission(String)

Determine whether the calling process of an IPC or you have been granted a particular permission.

(Inherited from ContextWrapper)
CheckCallingOrSelfUriPermission(Uri, ActivityFlags) CheckCallingOrSelfUriPermission(Uri, ActivityFlags)

Determine whether the calling process of an IPC or you has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckCallingPermission(String) CheckCallingPermission(String)

Determine whether the calling process of an IPC you are handling has been granted a particular permission.

(Inherited from ContextWrapper)
CheckCallingUriPermission(Uri, ActivityFlags) CheckCallingUriPermission(Uri, ActivityFlags)

Determine whether the calling process and user ID has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckPermission(String, Int32, Int32) CheckPermission(String, Int32, Int32)

Determine whether the given permission is allowed for a particular process and user ID running in the system.

(Inherited from ContextWrapper)
CheckSelfPermission(String) CheckSelfPermission(String) Inherited from ContextWrapper
CheckUriPermission(Uri, Int32, Int32, ActivityFlags) CheckUriPermission(Uri, Int32, Int32, ActivityFlags)

Determine whether a particular process and user ID has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags) CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags)

Check both a Uri and normal permission.

(Inherited from ContextWrapper)
ClearWallpaper() ClearWallpaper() Inherited from ContextWrapper
Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CreateConfigurationContext(Configuration) CreateConfigurationContext(Configuration)

Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.

(Inherited from ContextWrapper)
CreateContextForSplit(String) CreateContextForSplit(String) Inherited from ContextWrapper
CreateDeviceProtectedStorageContext() CreateDeviceProtectedStorageContext() Inherited from ContextWrapper
CreateDisplayContext(Display) CreateDisplayContext(Display)

Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.

(Inherited from ContextWrapper)
CreatePackageContext(String, PackageContextFlags) CreatePackageContext(String, PackageContextFlags)

Return a new Context object for the given application name.

(Inherited from ContextWrapper)
DatabaseList() DatabaseList()

Returns an array of strings naming the private databases associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteDatabase(String) DeleteDatabase(String)

Delete an existing private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteFile(String) DeleteFile(String)

Delete the given private file associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteSharedPreferences(String) DeleteSharedPreferences(String) Inherited from ContextWrapper
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Dump(FileDescriptor, PrintWriter, String[]) Dump(FileDescriptor, PrintWriter, String[])

Print the Service's state into the given stream.

(Inherited from Service)
EnableHardwareAcceleration() EnableHardwareAcceleration()

You can call this to try to enable hardware accelerated drawing for your IME.

EnforceCallingOrSelfPermission(String, String) EnforceCallingOrSelfPermission(String, String)

If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String) EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String)

If the calling process of an IPC or you has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforceCallingPermission(String, String) EnforceCallingPermission(String, String)

If the calling process of an IPC you are handling has not been granted a particular permission, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceCallingUriPermission(Uri, ActivityFlags, String) EnforceCallingUriPermission(Uri, ActivityFlags, String)

If the calling process and user ID has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforcePermission(String, Int32, Int32, String) EnforcePermission(String, Int32, Int32, String)

If the given permission is not allowed for a particular process and user ID running in the system, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String) EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String)

If a particular process and user ID has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String) EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String)

Enforce both a Uri and normal permission.

(Inherited from ContextWrapper)
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FileList() FileList()

Returns an array of strings naming the private files associated with this Context's application package.

(Inherited from ContextWrapper)
GetColor(Int32) GetColor(Int32) Inherited from Context
GetColorStateList(Int32) GetColorStateList(Int32) Inherited from Context
GetDatabasePath(String) GetDatabasePath(String) Inherited from ContextWrapper
GetDir(String, FileCreationMode) GetDir(String, FileCreationMode)

Retrieve, creating if needed, a new directory in which the application can place its own custom data files.

(Inherited from ContextWrapper)
GetDrawable(Int32) GetDrawable(Int32)

Returns a drawable object associated with a particular resource ID and styled for the current theme.

(Inherited from Context)
GetExternalCacheDirs() GetExternalCacheDirs()

Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns.

(Inherited from ContextWrapper)
GetExternalFilesDir(String) GetExternalFilesDir(String)

Returns the absolute path to the directory on the primary external filesystem (that is somewhere on ExternalStorageDirectory) where the application can place persistent files it owns.

(Inherited from ContextWrapper)
GetExternalFilesDirs(String) GetExternalFilesDirs(String)

Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns.

(Inherited from ContextWrapper)
GetExternalMediaDirs() GetExternalMediaDirs()

Returns absolute paths to application-specific directories on all external storage devices where the application can place media files.

(Inherited from ContextWrapper)
GetFileStreamPath(String) GetFileStreamPath(String)

Returns the absolute path on the filesystem where a file created with OpenFileOutput(String, FileCreationMode) is stored.

(Inherited from ContextWrapper)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetObbDirs() 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.

(Inherited from ContextWrapper)
GetSharedPreferences(String, FileCreationMode) 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.

(Inherited from ContextWrapper)
GetString(Int32) GetString(Int32)

Returns a localized string from the application's package's default string table.

(Inherited from Context)
GetString(Int32, Object[]) GetString(Int32, Object[]) Inherited from Context
GetSystemService(Class) GetSystemService(Class) Inherited from Context
GetSystemService(String) GetSystemService(String)

Return the handle to a system-level service by name.

(Inherited from ContextWrapper)
GetSystemServiceName(Class) GetSystemServiceName(Class) Inherited from ContextWrapper
GetText(Int32) GetText(Int32) Inherited from Context
GetTextForImeAction(ImeAction) GetTextForImeAction(ImeAction)
GetTextForImeActionFormatted(ImeAction) GetTextForImeActionFormatted(ImeAction)

Return text that can be used as a button label for the given ImeOptions.

GetTextFormatted(Int32) GetTextFormatted(Int32)

Return a localized, styled CharSequence from the application's package's default string table.

(Inherited from Context)
GrantUriPermission(String, Uri, ActivityFlags) GrantUriPermission(String, 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.

(Inherited from ContextWrapper)
HideStatusIcon() HideStatusIcon()
HideWindow() HideWindow()
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
MoveDatabaseFrom(Context, String) MoveDatabaseFrom(Context, String) Inherited from ContextWrapper
MoveSharedPreferencesFrom(Context, String) MoveSharedPreferencesFrom(Context, String) Inherited from ContextWrapper
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
ObtainStyledAttributes(IAttributeSet, Int32[]) ObtainStyledAttributes(IAttributeSet, Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32) ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32)

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(Int32, Int32[]) ObtainStyledAttributes(Int32, Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(Int32[]) ObtainStyledAttributes(Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
OnAppPrivateCommand(String, Bundle) OnAppPrivateCommand(String, Bundle)
OnBind(Intent) OnBind(Intent)

Return the communication channel to the service.

(Inherited from AbstractInputMethodService)
OnBindInput() OnBindInput()

Called when a new client has bound to the input method.

OnComputeInsets(InputMethodService+Insets) OnComputeInsets(InputMethodService+Insets)

Compute the interesting insets into your UI.

OnConfigurationChanged(Configuration) OnConfigurationChanged(Configuration)

Called by the system when the device configuration changes while your component is running.

(Inherited from Service)
OnConfigureWindow(Window, Boolean, Boolean) OnConfigureWindow(Window, Boolean, Boolean)

Update the given window's parameters for the given mode.

OnCreate() OnCreate()

Called by the system when the service is first created.

(Inherited from Service)
OnCreateCandidatesView() OnCreateCandidatesView()

Create and return the view hierarchy used to show candidates.

OnCreateExtractTextView() OnCreateExtractTextView()

Called by the framework to create the layout for showing extacted text.

OnCreateInputMethodInterface() OnCreateInputMethodInterface()

InputMethodService InputMethodImpl

OnCreateInputMethodSessionInterface() OnCreateInputMethodSessionInterface()

InputMethodService InputMethodSessionImpl

OnCreateInputView() OnCreateInputView()

Create and return the view hierarchy used for the input area (such as a soft keyboard).

OnCurrentInputMethodSubtypeChanged(InputMethodSubtype) OnCurrentInputMethodSubtypeChanged(InputMethodSubtype)

Called when the subtype was changed.

OnDestroy() OnDestroy()

Called by the system to notify a Service that it is no longer used and is being removed.

(Inherited from Service)
OnDisplayCompletions(CompletionInfo[]) OnDisplayCompletions(CompletionInfo[])

Called when the application has reported auto-completion candidates that it would like to have the input method displayed.

OnEvaluateFullscreenMode() OnEvaluateFullscreenMode()

Override this to control when the input method should run in fullscreen mode.

OnEvaluateInputViewShown() OnEvaluateInputViewShown()

Override this to control when the soft input area should be shown to the user.

OnExtractedCursorMovement(Int32, Int32) OnExtractedCursorMovement(Int32, Int32)

This is called when the user has performed a cursor movement in the extracted text view, when it is running in fullscreen mode.

OnExtractedSelectionChanged(Int32, Int32) OnExtractedSelectionChanged(Int32, Int32)

This is called when the user has moved the cursor in the extracted text view, when running in fullsreen mode.

OnExtractedTextClicked() OnExtractedTextClicked()

This is called when the user has clicked on the extracted text view, when running in fullscreen mode.

OnExtractingInputChanged(EditorInfo) OnExtractingInputChanged(EditorInfo)

This is called when, while currently displayed in extract mode, the current input target changes.

OnExtractTextContextMenuItem(Int32) OnExtractTextContextMenuItem(Int32)

This is called when the user has selected a context menu item from the extracted text view, when running in fullscreen mode.

OnFinishCandidatesView(Boolean) OnFinishCandidatesView(Boolean)

Called when the candidates view is being hidden from the user.

OnFinishInput() OnFinishInput()

Called to inform the input method that text input has finished in the last editor.

OnFinishInputView(Boolean) OnFinishInputView(Boolean)

Called when the input view is being hidden from the user.

OnGenericMotionEvent(MotionEvent) OnGenericMotionEvent(MotionEvent)

Implement this to handle generic motion events on your input method.

(Inherited from AbstractInputMethodService)
OnInitializeInterface() OnInitializeInterface()

This is a hook that subclasses can use to perform initialization of their interface.

OnKeyDown(Keycode, KeyEvent) OnKeyDown(Keycode, KeyEvent)

Override this to intercept key down events before they are processed by the application.

OnKeyLongPress(Keycode, KeyEvent) OnKeyLongPress(Keycode, KeyEvent)

Default implementation of OnKeyLongPress(Keycode, KeyEvent): always returns false (doesn't handle the event).

OnKeyMultiple(Keycode, Int32, KeyEvent) OnKeyMultiple(Keycode, Int32, KeyEvent)

Override this to intercept special key multiple events before they are processed by the application.

OnKeyUp(Keycode, KeyEvent) OnKeyUp(Keycode, KeyEvent)

Override this to intercept key up events before they are processed by the application.

OnLowMemory() OnLowMemory()

This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.

(Inherited from Service)
OnRebind(Intent) OnRebind(Intent)

Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its OnUnbind(Intent).

(Inherited from Service)
OnShowInputRequested(ShowFlags, Boolean) OnShowInputRequested(ShowFlags, Boolean)

The system has decided that it may be time to show your input method.

OnStart(Intent, Int32) OnStart(Intent, Int32) Inherited from Service
OnStartCandidatesView(EditorInfo, Boolean) OnStartCandidatesView(EditorInfo, Boolean)

Called when only the candidates view has been shown for showing processing as the user enters text through a hard keyboard.

OnStartCommand(Intent, StartCommandFlags, Int32) OnStartCommand(Intent, StartCommandFlags, Int32)

Called by the system every time a client explicitly starts the service by calling StartService(Intent), providing the arguments it supplied and a unique integer token representing the start request.

(Inherited from Service)
OnStartInput(EditorInfo, Boolean) OnStartInput(EditorInfo, Boolean)

Called to inform the input method that text input has started in an editor.

OnStartInputView(EditorInfo, Boolean) OnStartInputView(EditorInfo, Boolean)

Called when the input view is being shown and input has started on a new editor.

OnTaskRemoved(Intent) OnTaskRemoved(Intent)

This is called if the service is currently running and the user has removed a task that comes from the service's application.

(Inherited from Service)
OnTrackballEvent(MotionEvent) OnTrackballEvent(MotionEvent)

Implement this to handle trackball events on your input method.

(Inherited from AbstractInputMethodService)
OnTrimMemory(TrimMemory) OnTrimMemory(TrimMemory)

Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process.

(Inherited from Service)
OnUnbind(Intent) OnUnbind(Intent)

Called when all clients have disconnected from a particular interface published by the service.

(Inherited from Service)
OnUnbindInput() OnUnbindInput()

Called when the previous bound client is no longer associated with the input method.

OnUpdateCursor(Rect) OnUpdateCursor(Rect)

Called when the application has reported a new location of its text cursor.

OnUpdateCursorAnchorInfo(CursorAnchorInfo) OnUpdateCursorAnchorInfo(CursorAnchorInfo)

Called when the application has reported a new location of its text insertion point and characters in the composition string.

OnUpdateExtractedText(Int32, ExtractedText) OnUpdateExtractedText(Int32, ExtractedText)

Called when the application has reported new extracted text to be shown due to changes in its current text state.

OnUpdateExtractingViews(EditorInfo) OnUpdateExtractingViews(EditorInfo)

Called when the fullscreen-mode extracting editor info has changed, to update the state of its UI such as the action buttons shown.

OnUpdateExtractingVisibility(EditorInfo) OnUpdateExtractingVisibility(EditorInfo)

Called when the fullscreen-mode extracting editor info has changed, to determine whether the extracting (extract text and candidates) portion of the UI should be shown.

OnUpdateSelection(Int32, Int32, Int32, Int32, Int32, Int32) OnUpdateSelection(Int32, Int32, Int32, Int32, Int32, Int32)

Called when the application has reported a new selection region of the text.

OnViewClicked(Boolean) OnViewClicked(Boolean)

Called when the user tapped or clicked a text view.

OnWindowHidden() OnWindowHidden()

Called when the input method window has been hidden from the user, after previously being visible.

OnWindowShown() OnWindowShown()

Called when the input method window has been shown to the user, after previously not being visible.

OpenFileInput(String) OpenFileInput(String)

Open a private file associated with this Context's application package for reading.

(Inherited from ContextWrapper)
OpenFileOutput(String, FileCreationMode) OpenFileOutput(String, FileCreationMode)

Open a private file associated with this Context's application package for writing.

(Inherited from ContextWrapper)
OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory) OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory)

Open a new private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler) OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler)

Open a new private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
PeekWallpaper() PeekWallpaper() Inherited from ContextWrapper
RegisterComponentCallbacks(IComponentCallbacks) RegisterComponentCallbacks(IComponentCallbacks)

Add a new 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.

(Inherited from Context)
RegisterReceiver(BroadcastReceiver, IntentFilter) RegisterReceiver(BroadcastReceiver, IntentFilter)

Register a BroadcastReceiver to be run in the main activity thread.

(Inherited from ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags) RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags) Inherited from ContextWrapper
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler) RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler)

scheduler

(Inherited from ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags) RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags) Inherited from ContextWrapper
RemoveStickyBroadcast(Intent) RemoveStickyBroadcast(Intent) Inherited from ContextWrapper
RemoveStickyBroadcastAsUser(Intent, UserHandle) RemoveStickyBroadcastAsUser(Intent, UserHandle) Inherited from ContextWrapper
RequestHideSelf(HideSoftInputFlags) RequestHideSelf(HideSoftInputFlags)

Close this input method's soft input area, removing it from the display.

RevokeUriPermission(String, Uri, ActivityFlags) RevokeUriPermission(String, Uri, ActivityFlags) Inherited from ContextWrapper
RevokeUriPermission(Uri, ActivityFlags) RevokeUriPermission(Uri, ActivityFlags)

M:Android.Content.Context.GrantUriPermission(System.String,Android.Net.Uri,Android.Net.Uri)

(Inherited from ContextWrapper)
SendBroadcast(Intent) SendBroadcast(Intent)

Broadcast the given intent to all interested BroadcastReceivers.

(Inherited from ContextWrapper)
SendBroadcast(Intent, String) SendBroadcast(Intent, String)

Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.

(Inherited from ContextWrapper)
SendBroadcastAsUser(Intent, UserHandle) SendBroadcastAsUser(Intent, UserHandle)

Version of SendBroadcast(Intent) that allows you to specify the user the broadcast will be sent to.

(Inherited from ContextWrapper)
SendBroadcastAsUser(Intent, UserHandle, String) SendBroadcastAsUser(Intent, UserHandle, String)

Version of SendBroadcast(Intent, String) that allows you to specify the user the broadcast will be sent to.

(Inherited from ContextWrapper)
SendDefaultEditorAction(Boolean) SendDefaultEditorAction(Boolean)

M:Android.Views.InputMethods.BaseInputConnection.PerformEditorAction

SendDownUpKeyEvents(Keycode) SendDownUpKeyEvents(Keycode)

Send the given key event code (as defined by KeyEvent) to the current input connection is a key down + key up event pair.

SendKeyChar(Char) SendKeyChar(Char)

Send the given UTF-16 character to the current input connection.

SendOrderedBroadcast(Intent, String) SendOrderedBroadcast(Intent, String) Inherited from ContextWrapper
SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

Version of SendBroadcast(Intent) that allows you to receive data back from the broadcast.

(Inherited from ContextWrapper)
SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SendStickyBroadcast(Intent) SendStickyBroadcast(Intent) Inherited from ContextWrapper
SendStickyBroadcastAsUser(Intent, UserHandle) SendStickyBroadcastAsUser(Intent, UserHandle) Inherited from ContextWrapper
SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle) SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle) SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SetCandidatesView(View) SetCandidatesView(View)

Replaces the current candidates view with a new one.

SetCandidatesViewShown(Boolean) SetCandidatesViewShown(Boolean)

Controls the visibility of the candidates display area.

SetExtractView(View) SetExtractView(View)
SetForeground(Boolean) SetForeground(Boolean) Inherited from Service
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInputView(View) SetInputView(View)

Replaces the current input view with a new one.

SetTheme(Int32) SetTheme(Int32)

Set the base theme for this context.

(Inherited from ContextWrapper)
SetWallpaper(Bitmap) SetWallpaper(Bitmap) Inherited from ContextWrapper
SetWallpaper(Stream) SetWallpaper(Stream) Inherited from ContextWrapper
ShowStatusIcon(Int32) ShowStatusIcon(Int32)
ShowWindow(Boolean) ShowWindow(Boolean)
StartActivities(Intent[]) StartActivities(Intent[])

Same as StartActivities(Intent[], Bundle) with no options specified.

(Inherited from ContextWrapper)
StartActivities(Intent[], Bundle) StartActivities(Intent[], Bundle)

Launch multiple new activities.

(Inherited from ContextWrapper)
StartActivity(Intent) StartActivity(Intent)

Same as StartActivity(Intent, Bundle) with no options specified.

(Inherited from ContextWrapper)
StartActivity(Intent, Bundle) StartActivity(Intent, Bundle)

Launch a new activity.

(Inherited from ContextWrapper)
StartActivity(Type) StartActivity(Type) Inherited from Context
StartForeground(Int32, Notification) StartForeground(Int32, Notification)

Make this service run in the foreground, supplying the ongoing notification to be shown to the user while in this state.

(Inherited from Service)
StartForegroundService(Intent) StartForegroundService(Intent) Inherited from ContextWrapper
StartInstrumentation(ComponentName, String, Bundle) StartInstrumentation(ComponentName, String, Bundle)

Start executing an Instrumentation class.

(Inherited from ContextWrapper)
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) Inherited from ContextWrapper
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

Like StartActivity(Intent, Bundle), but taking a IntentSender to start.

(Inherited from ContextWrapper)
StartService(Intent) StartService(Intent)

Request that a given application service be started.

(Inherited from ContextWrapper)
StopForeground(Boolean) StopForeground(Boolean)

Remove this service from foreground state, allowing it to be killed if more memory is needed.

(Inherited from Service)
StopForeground(StopForegroundFlags) StopForeground(StopForegroundFlags) Inherited from Service
StopSelf() StopSelf()

Stop the service, if it was previously started.

(Inherited from Service)
StopSelf(Int32) StopSelf(Int32)

Old version of StopSelfResult(Int32) that doesn't return a result.

(Inherited from Service)
StopSelfResult(Int32) StopSelfResult(Int32)

startId

(Inherited from Service)
StopService(Intent) StopService(Intent)

Request that a given application service be stopped.

(Inherited from ContextWrapper)
SwitchInputMethod(String) SwitchInputMethod(String)

id

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnbindService(IServiceConnection) UnbindService(IServiceConnection)

Disconnect from an application service.

(Inherited from ContextWrapper)
UnregisterComponentCallbacks(IComponentCallbacks) UnregisterComponentCallbacks(IComponentCallbacks)

Remove a IComponentCallbacks object that was previously registered with RegisterComponentCallbacks(IComponentCallbacks).

(Inherited from Context)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
UnregisterReceiver(BroadcastReceiver) UnregisterReceiver(BroadcastReceiver)

Unregister a previously registered BroadcastReceiver.

(Inherited from ContextWrapper)
UpdateFullscreenMode() UpdateFullscreenMode()

Re-evaluate whether the input method should be running in fullscreen mode, and update its UI if this has changed since the last time it was evaluated.

UpdateInputViewShown() UpdateInputViewShown()

Re-evaluate whether the soft input area should currently be shown, and update its UI if this has changed since the last time it was evaluated.

Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

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
StopForegroundDetach StopForegroundDetach Inherited from Service
StopForegroundRemove StopForegroundRemove Inherited from Service
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

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

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)

Applies to