CredentialProviderService

Kotlin |Java

public abstract class CredentialProviderService extends Service 


Service to be extended by a credential provider, to be able to receive credential update events from the system. Typically, a credential provider does not need to directly extend this service, but instead should extend the CredentialProviderEventsService from the androidx.credentials library, which will automatically extend this service.

This service can only be bound to by Google Play Services.

Summary

Constants

static final @NonNull String
static final @NonNull String
static final @NonNull String

Public constructors

Public methods

IBinder
abstract void

Called by the system to create a credential.

final int
getColor(int p0)
final @Nullable Drawable
getDrawable(int p0)
final @NonNull String
getString(int p0)
final @NonNull String
getString(int p0, @NonNull Object p1)
final @NonNull T
final @NonNull CharSequence
getText(int p0)
final @NonNull TypedArray
obtainStyledAttributes(int p0, @NonNull int[] p1)
final @NonNull TypedArray
obtainStyledAttributes(
@Nullable AttributeSet p0,
@NonNull int[] p1,
int p2,
int p3
)
boolean
int
checkContentUriPermissionFull(@NonNull Uri p0, int p1, int p2, int p3)
int
checkPermission(@NonNull String p0, int p1, int p2)
int
checkUriPermission(@NonNull Uri p0, int p1, int p2, int p3)
int
checkUriPermission(
@Nullable Uri p0,
@Nullable String p1,
@Nullable String p2,
int p3,
int p4,
int p5
)
@NonNull int[]
checkUriPermissions(@NonNull List<@NonNull Uri> p0, int p1, int p2, int p3)
void
(削除) clearWallpaper (削除ここまで)()

This method is deprecated. Deprecated in Java

@NonNull String[]
boolean
void
enforcePermission(@NonNull String p0, int p1, int p2, @Nullable String p3)
void
enforceUriPermission(
@NonNull Uri p0,
int p1,
int p2,
int p3,
@NonNull String p4
)
void
enforceUriPermission(
@Nullable Uri p0,
@Nullable String p1,
@Nullable String p2,
int p3,
int p4,
int p5,
@Nullable String p6
)
@NonNull String[]
int
@NonNull File
getDir(@NonNull String p0, int p1)
@NonNull File[]
@NonNull Drawable
(削除) getWallpaper (削除ここまで)()

This method is deprecated. Deprecated in Java

int
(削除) getWallpaperDesiredMinimumHeight (削除ここまで)()

This method is deprecated. Deprecated in Java

int
(削除) getWallpaperDesiredMinimumWidth (削除ここまで)()

This method is deprecated. Deprecated in Java

void
boolean
boolean
@NonNull Drawable
(削除) peekWallpaper (削除ここまで)()

This method is deprecated. Deprecated in Java

void
(削除) removeStickyBroadcast (削除ここまで)(@NonNull Intent p0)

This method is deprecated. Deprecated in Java

void
(削除) removeStickyBroadcastAsUser (削除ここまで)(@NonNull Intent p0, @NonNull UserHandle p1)

This method is deprecated. Deprecated in Java

void
void
void
(削除) sendStickyBroadcast (削除ここまで)(@NonNull Intent p0)

This method is deprecated. Deprecated in Java

void
(削除) sendStickyBroadcast (削除ここまで)(@NonNull Intent p0, @Nullable Bundle p1)

This method is deprecated. Deprecated in Java

void
(削除) sendStickyBroadcastAsUser (削除ここまで)(@NonNull Intent p0, @NonNull UserHandle p1)

This method is deprecated. Deprecated in Java

void
(削除) sendStickyOrderedBroadcast (削除ここまで)(
@NonNull Intent p0,
@Nullable BroadcastReceiver p1,
@Nullable Handler p2,
int p3,
@Nullable String p4,
@Nullable Bundle p5
)

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void
setTheme(int p0)
void
(削除) setWallpaper (削除ここまで)(@NonNull Bitmap p0)

This method is deprecated. Deprecated in Java

void
(削除) setWallpaper (削除ここまで)(@NonNull InputStream p0)

This method is deprecated. Deprecated in Java

void
startActivities(@NonNull Intent[] p0)
void
void
startIntentSender(
@NonNull IntentSender p0,
@Nullable Intent p1,
int p2,
int p3,
int p4
)
void
startIntentSender(
@NonNull IntentSender p0,
@Nullable Intent p1,
int p2,
int p3,
int p4,
@Nullable Bundle p5
)
boolean
void
void
void
void
void
void
void
(削除) onStart (削除ここまで)(@NonNull Intent p0, int p1)

This method is deprecated. Deprecated in Java

int
onStartCommand(@NonNull Intent p0, int p1, int p2)
void
onTimeout(int p0)
void
onTimeout(int p0, int p1)
void
onTrimMemory(int p0)
boolean
final void
final void
startForeground(int p0, @NonNull Notification p1, int p2)
final void
(削除) stopForeground (削除ここまで)(boolean p0)

This method is deprecated. Deprecated in Java

final void
final void
final void
stopSelf(int p0)
final boolean

Inherited methods

From android.content.Context
From android.content.ContextWrapper
From android.app.Service

Constants

EXTRA_CREATE_CREDENTIAL_REQUEST

public static final @NonNull String EXTRA_CREATE_CREDENTIAL_REQUEST 

GMS_PACKAGE_NAME

public static final @NonNull String GMS_PACKAGE_NAME 

TAG

public static final @NonNull String TAG 

Public constructors

CredentialProviderService

public CredentialProviderService()

Public methods

onBind

public IBinder onBind(@NonNull Intent intent)

onCreateCredentialRequest

public abstract void onCreateCredentialRequest(
@NonNull CreateCredentialRequest request,
@NonNull CallingAppInfoParcelable callingAppInfo,
@NonNull CancellationSignal cancellationSignal,
@NonNull CreateCredentialCallback callback
)

Called by the system to create a credential.

Parameters
@NonNull CreateCredentialRequest request

The credential creation request for the provider to handle.

@NonNull CancellationSignal cancellationSignal

Signal for providers to listen to any cancellation requests from the android system.

@NonNull CreateCredentialCallback callback

Object used to relay the response of the credential creation request.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年12月17日 UTC.