Język

Control.StatefulBuilder.SetStructure Method

Definition

Overloads

Name Description
SetStructure(ICharSequence)

Optional top-level group to help define the Control's location, visible to the user.

SetStructure(String)

Sets the top-level location group.

SetStructure(ICharSequence)

Optional top-level group to help define the Control's location, visible to the user.

[Android.Runtime.Register("setStructure", "(Ljava/lang/CharSequence;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatefulBuilder SetStructure(Java.Lang.ICharSequence? structure);
[<Android.Runtime.Register("setStructure", "(Ljava/lang/CharSequence;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)>]
member this.SetStructure : Java.Lang.ICharSequence -> Android.Service.Controls.Control.StatefulBuilder

Parameters

structure
ICharSequence

name of the structure containing the control. This value may be null.

Returns

this This value cannot be null.

Attributes

Remarks

Optional top-level group to help define the Control's location, visible to the user. If not present, the application name will be used as the top-level group. A structure contains zones which contains controls.

Android reference for android.service.controls.Control.StatefulBuilder.setStructure.

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

SetStructure(String)

Sets the top-level location group.

public Android.Service.Controls.Control.StatefulBuilder SetStructure(string? structure);
member this.SetStructure : string -> Android.Service.Controls.Control.StatefulBuilder

Parameters

structure
String

The name of the structure that contains the control, or null to leave it unset.

Returns

This builder.

Remarks

A structure contains zones, and zones contain controls. If the structure is not set, Android uses the application name as the top-level group.

See the Android implementation.

Applies to