Share via


SettingsPreferenceServiceClient Constructors

Definition

Overloads

SettingsPreferenceServiceClient(IntPtr, JniHandleOwnership)
SettingsPreferenceServiceClient(Context, String, IExecutor, IOutcomeReceiver)

Construct a client for binding to a SettingsPreferenceService provided by the application corresponding to the provided package name.

SettingsPreferenceServiceClient(IntPtr, JniHandleOwnership)

protected SettingsPreferenceServiceClient(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Service.Settings.Preferences.SettingsPreferenceServiceClient : nativeint * Android.Runtime.JniHandleOwnership -> Android.Service.Settings.Preferences.SettingsPreferenceServiceClient

Parameters

javaReference
IntPtr

nativeint

Applies to

SettingsPreferenceServiceClient(Context, String, IExecutor, IOutcomeReceiver)

Construct a client for binding to a SettingsPreferenceService provided by the application corresponding to the provided package name.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
public SettingsPreferenceServiceClient(Android.Content.Context context, string packageName, Java.Util.Concurrent.IExecutor callbackExecutor, Android.OS.IOutcomeReceiver clientReadyCallback);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]
new Android.Service.Settings.Preferences.SettingsPreferenceServiceClient : Android.Content.Context * string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> Android.Service.Settings.Preferences.SettingsPreferenceServiceClient

Parameters

context
Context

Application context

packageName
String

package name for which this client will initiate a service binding

callbackExecutor
IExecutor

executor on which to invoke clientReadyCallback

clientReadyCallback
IOutcomeReceiver

callback invoked once the client is ready, error otherwise

Attributes

Remarks

Construct a client for binding to a SettingsPreferenceService provided by the application corresponding to the provided package name.

Java documentation for android.service.settings.preferences.SettingsPreferenceServiceClient.SettingsPreferenceServiceClient(android.content.Context, java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<android.service.settings.preferences.SettingsPreferenceServiceClient, java.lang.Exception>).

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