ContentProvider.Call Method

Definition

Overloads

Call(String, String, Bundle)

Call a provider-defined method.

Call(String, String, String, Bundle)

Call a provider-defined method.

Call(String, String, Bundle)

Call a provider-defined method.

[Android.Runtime.Register("call", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetCall_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual Android.OS.Bundle? Call (string method, string? arg, Android.OS.Bundle? extras);
[<Android.Runtime.Register("call", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetCall_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member Call : string * string * Android.OS.Bundle -> Android.OS.Bundle
override this.Call : string * string * Android.OS.Bundle -> Android.OS.Bundle

Parameters

method
String

method name to call. Opaque to framework, but should not be null.

arg
String

provider-defined String argument. May be null.

extras
Bundle

provider-defined Bundle argument. May be null.

Returns

provider-defined return value. May be null, which is also the default for providers which don't implement any call methods.

Attributes

Remarks

Java documentation for android.content.ContentProvider.call(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle).

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.

Applies to

Call(String, String, String, Bundle)

Call a provider-defined method.

[Android.Runtime.Register("call", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetCall_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=29)]
public virtual Android.OS.Bundle? Call (string authority, string method, string? arg, Android.OS.Bundle? extras);
[<Android.Runtime.Register("call", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;", "GetCall_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=29)>]
abstract member Call : string * string * string * Android.OS.Bundle -> Android.OS.Bundle
override this.Call : string * string * string * Android.OS.Bundle -> Android.OS.Bundle

Parameters

authority
String
method
String

method name to call. Opaque to framework, but should not be null.

arg
String

provider-defined String argument. May be null.

extras
Bundle

provider-defined Bundle argument. May be null.

Returns

provider-defined return value. May be null, which is also the default for providers which don't implement any call methods.

Attributes

Remarks

Call a provider-defined method. This can be used to implement interfaces that are cheaper and/or unnatural for a table-like model.

<p class="note"><strong>WARNING:</strong> The framework does no permission checking on this entry into the content provider besides the basic ability for the application to get access to the provider at all. For example, it has no idea whether the call being executed may read or write data in the provider, so can't enforce those individual permissions. Any implementation of this method <strong>must</strong> do its own permission checks on incoming calls to make sure they are allowed.</p>

Java documentation for android.content.ContentProvider.call(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle).

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.

Applies to