Class ConsentDialog.Toggle
This class represents a toogle in the consent dialog.
Inheritance
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class Toggle
Constructors
Toggle(String)
Declaration
public Toggle(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Properties
Description
Returns OffDescription if EasyMobile.ConsentDialog.Toggle.shouldToggleDescription is true
and EasyMobile.ConsentDialog.Toggle.isOn is false
. Otherwise returns OnDescription.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description. |
Id
Gets the identifier of this toggle.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
IsInteractable
Gets or sets a value indicating whether this toggle is interactable.
Default value is true
.
Declaration
public bool IsInteractable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsOn
Gets or sets a value indicating whether this toggle is on.
Default value is false
.
Declaration
public bool IsOn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
OffDescription
Gets or sets the description of the toggle when it is off.
Declaration
public string OffDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String | The off description. |
OnDescription
Gets or sets the description of the toggle when is is on.
Declaration
public string OnDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String | The on description. |
ShouldToggleDescription
Gets or sets a value indicating whether this toggle
should update its description when its on/off state changes.
If this value is false
, the OnDescription will always show.
Default is false
.
Declaration
public bool ShouldToggleDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Title
Gets or sets the title.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |