Class Switch | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class Switch

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    Switch
    Inherited Members
    StatefulWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.material
    Syntax
    public class Switch : StatefulWidget

    Constructors

    Switch(Key, Nullable<Boolean>, ValueChanged<Nullable<Boolean>>, Color, Color, Color, Color, ImageProvider, ImageProvider, Nullable<MaterialTapTargetSize>, DragStartBehavior)

    Declaration
    public Switch(Key key = null, bool? value = default(bool? ), ValueChanged<bool? > onChanged = null, Color activeColor = null, Color activeTrackColor = null, Color inactiveThumbColor = null, Color inactiveTrackColor = null, ImageProvider activeThumbImage = null, ImageProvider inactiveThumbImage = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), DragStartBehavior dragStartBehavior = DragStartBehavior.start)
    Parameters
    Type Name Description
    Key key
    Nullable<Boolean> value
    ValueChanged<Nullable<Boolean>> onChanged
    Color activeColor
    Color activeTrackColor
    Color inactiveThumbColor
    Color inactiveTrackColor
    ImageProvider activeThumbImage
    ImageProvider inactiveThumbImage
    Nullable<MaterialTapTargetSize> materialTapTargetSize
    DragStartBehavior dragStartBehavior

    Fields

    activeColor

    Declaration
    public readonly Color activeColor
    Field Value
    Type Description
    Color

    activeThumbImage

    Declaration
    public readonly ImageProvider activeThumbImage
    Field Value
    Type Description
    ImageProvider

    activeTrackColor

    Declaration
    public readonly Color activeTrackColor
    Field Value
    Type Description
    Color

    dragStartBehavior

    Declaration
    public readonly DragStartBehavior dragStartBehavior
    Field Value
    Type Description
    DragStartBehavior

    inactiveThumbColor

    Declaration
    public readonly Color inactiveThumbColor
    Field Value
    Type Description
    Color

    inactiveThumbImage

    Declaration
    public readonly ImageProvider inactiveThumbImage
    Field Value
    Type Description
    ImageProvider

    inactiveTrackColor

    Declaration
    public readonly Color inactiveTrackColor
    Field Value
    Type Description
    Color

    materialTapTargetSize

    Declaration
    public readonly MaterialTapTargetSize? materialTapTargetSize
    Field Value
    Type Description
    Nullable<MaterialTapTargetSize>

    onChanged

    Declaration
    public readonly ValueChanged<bool? > onChanged
    Field Value
    Type Description
    ValueChanged<Nullable<Boolean>>

    value

    Declaration
    public readonly bool value
    Field Value
    Type Description
    Boolean

    Methods

    adaptive(Key, Nullable<Boolean>, ValueChanged<Nullable<Boolean>>, Color, Color, Color, Color, ImageProvider, ImageProvider, Nullable<MaterialTapTargetSize>, DragStartBehavior)

    Declaration
    public static Switch adaptive(Key key = null, bool? value = default(bool? ), ValueChanged<bool? > onChanged = null, Color activeColor = null, Color activeTrackColor = null, Color inactiveThumbColor = null, Color inactiveTrackColor = null, ImageProvider activeThumbImage = null, ImageProvider inactiveThumbImage = null, MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), DragStartBehavior dragStartBehavior = DragStartBehavior.down)
    Parameters
    Type Name Description
    Key key
    Nullable<Boolean> value
    ValueChanged<Nullable<Boolean>> onChanged
    Color activeColor
    Color activeTrackColor
    Color inactiveThumbColor
    Color inactiveTrackColor
    ImageProvider activeThumbImage
    ImageProvider inactiveThumbImage
    Nullable<MaterialTapTargetSize> materialTapTargetSize
    DragStartBehavior dragStartBehavior
    Returns
    Type Description
    Switch

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023