Class ConsentDialog.Button
This class represents an action button in the consent dialog.
Inheritance
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class Button
Constructors
Button(String)
Declaration
public Button(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Properties
BodyColor
Gets or sets the color of the button body when IsInteractable is true
.
Declaration
public Color BodyColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the body. |
DisabledBodyColor
Gets or sets the color of the button body when IsInteractable is false
.
Declaration
public Color DisabledBodyColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the disabled body. |
DisabledTitleColor
Gets or sets the color of the button title when IsInteractable is false
.
Declaration
public Color DisabledTitleColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the disabled title. |
Id
Gets the identifier of this button.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |
IsInteractable
Gets or sets a value indicating whether this button is interactable.
Default value is true
.
Declaration
public bool IsInteractable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Title
Gets or sets the button title.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title. |
TitleColor
Gets or sets the color of the button title when IsInteractable is true
.
Declaration
public Color TitleColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the title. |
Methods
GetCurrentBodyColor()
Return BodyColor if IsInteractable is true
,
otherwise return DisabledBodyColor.
Declaration
public Color GetCurrentBodyColor()
Returns
Type | Description |
---|---|
Color |
GetCurrentTitleColor()
Return TitleColor if IsInteractable is true
,
otherwise return DisabledTitleColor.
Declaration
public Color GetCurrentTitleColor()
Returns
Type | Description |
---|---|
Color |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |