Notification.MediaStyle.SetShowActionsInCompactView(Int32[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request up to 3 actions (by index in the order of addition) to be shown in the compact notification view.
[Android.Runtime.Register("setShowActionsInCompactView", "([I)Landroid/app/Notification$MediaStyle;", "GetSetShowActionsInCompactView_arrayIHandler")]
public virtual Android.App.Notification.MediaStyle? SetShowActionsInCompactView(params int[]? actions);
[<Android.Runtime.Register("setShowActionsInCompactView", "([I)Landroid/app/Notification$MediaStyle;", "GetSetShowActionsInCompactView_arrayIHandler")>]
abstract member SetShowActionsInCompactView : int[] -> Android.App.Notification.MediaStyle
override this.SetShowActionsInCompactView : int[] -> Android.App.Notification.MediaStyle
Parameters
- actions
- Int32[]
int: the indices of the actions to show in the compact notification view
Returns
This Android.App.Notification.MediaStyle instance, allowing calls to be chained.
- Attributes
Remarks
Request up to 3 actions (by index in the order of addition) to be shown in the compact notification view.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.Notification.MediaStyle.setShowActionsInCompactView.
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.