insert

open fun insert(position: Int, label: String? = null, detailedAction: String? = null)

Convenience function for inserting a normal menu item into @menu. Combine g_menu_item_new() and g_menu_insert_item() for a more flexible alternative.

Since

2.32

Parameters

position

the position at which to insert the item

label

the section label, or null

detailedAction

the detailed action string, or null