Megosztás a következőn keresztül:


ContentResolver.Call Method

Definition

Overloads

Call(Uri, String, String, Bundle)

Call a provider-defined method.

Call(String, String, String, Bundle)

Call a provider-defined method.

Call(Uri, String, String, Bundle)

Call a provider-defined method.

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

Parameters

uri
Uri
method
String

provider-defined method name to call. Opaque to framework, but must be non-null.

arg
String

provider-defined String argument. May be null.

extras
Bundle

provider-defined Bundle argument. May be null.

Returns

a result Bundle, possibly null. Will be null if the ContentProvider does not implement call.

Attributes

Exceptions

if uri or method is null

if uri is not known

Remarks

Call a provider-defined method. This can be used to implement read or write interfaces which are cheaper than using a Cursor and/or do not fit into the traditional table model.

Java documentation for android.content.ContentResolver.call(android.net.Uri, 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;", "", ApiSince=29)]
public 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;", "", ApiSince=29)>]
member this.Call : string * string * string * Android.OS.Bundle -> Android.OS.Bundle

Parameters

authority
String
method
String

provider-defined method name to call. Opaque to framework, but must be non-null.

arg
String

provider-defined String argument. May be null.

extras
Bundle

provider-defined Bundle argument. May be null.

Returns

a result Bundle, possibly null. Will be null if the ContentProvider does not implement call.

Attributes

Remarks

Java documentation for android.content.ContentResolver.call(android.net.Uri, 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