共用方式為


Activity.IsLaunchedFromBubble Property

Definition

Indicates whether this activity is launched from a bubble.

public virtual bool IsLaunchedFromBubble { [Android.Runtime.Register("isLaunchedFromBubble", "()Z", "GetIsLaunchedFromBubbleHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("isLaunchedFromBubble", "()Z", "GetIsLaunchedFromBubbleHandler", ApiSince=31)>]
member this.IsLaunchedFromBubble : bool

Property Value

true if the activity is launched from a bubble.

Attributes

Remarks

Indicates whether this activity is launched from a bubble. A bubble is a floating shortcut on the screen that expands to show an activity.

If your activity can be used normally or as a bubble, you might use this method to check if the activity is bubbled to modify any behaviour that might be different between the normal activity and the bubbled activity. For example, if you normally cancel the notification associated with the activity when you open the activity, you might not want to do that when you're bubbled as that would remove the bubble.

Java documentation for android.app.Activity.isLaunchedFromBubble().

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