次の方法で共有


LauncherApps.PinItemRequest.Accept Method

Definition

Overloads

Accept()

Called by the receiving launcher app when the user accepts the request, with no options.

Accept(Bundle)

Called by the receiving launcher app when the user accepts the request.

Accept()

Called by the receiving launcher app when the user accepts the request, with no options.

[Android.Runtime.Register("accept", "()Z", "", ApiSince=26)]
public bool Accept ();
[<Android.Runtime.Register("accept", "()Z", "", ApiSince=26)>]
member this.Accept : unit -> bool

Returns

TRUE if the shortcut or the AppWidget has actually been pinned. FALSE if the item hasn't been pinned, for example, because the request had already been canceled, in which case the launcher must not pin the requested item.

Attributes

Remarks

Called by the receiving launcher app when the user accepts the request, with no options.

Java documentation for android.content.pm.LauncherApps.PinItemRequest.accept().

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

Accept(Bundle)

Called by the receiving launcher app when the user accepts the request.

[Android.Runtime.Register("accept", "(Landroid/os/Bundle;)Z", "", ApiSince=26)]
public bool Accept (Android.OS.Bundle? options);
[<Android.Runtime.Register("accept", "(Landroid/os/Bundle;)Z", "", ApiSince=26)>]
member this.Accept : Android.OS.Bundle -> bool

Parameters

options
Bundle

must be set for a #REQUEST_TYPE_APPWIDGET request.

Returns

TRUE if the shortcut or the AppWidget has actually been pinned. FALSE if the item hasn't been pinned, for example, because the request had already been canceled, in which case the launcher must not pin the requested item.

Attributes

Remarks

Called by the receiving launcher app when the user accepts the request.

Java documentation for android.content.pm.LauncherApps.PinItemRequest.accept(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