{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class RelayCommand<T> | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RelayCommand<T>

    Implementation of IRelayCommand that allows for CommandParameter to be passed in.

    Inheritance
    object
    RelayCommand<T>
    Implements
    IRelayCommand<T>
    IRelayCommand
    ICommand
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.MVVM
    Assembly: solution.dll
    Syntax
    public class RelayCommand<T> : IRelayCommand<T>, IRelayCommand, ICommand
    Type Parameters
    Name Description
    T

    The type of the CommandParameter.

    Constructors

    Name Description
    RelayCommand(Action<T?>)

    Initializes a new instance of the RelayCommand<T> class.

    RelayCommand(Action<T?>, Predicate<T?>)

    Initializes a new instance of the RelayCommand<T> class.

    Methods

    Name Description
    CanExecute(object?)

    Determines whether this RelayCommand<T> can execute in its current state.

    CanExecute(T?)

    Determines whether this RelayCommand<T> can execute in its current state.

    Execute(object?)

    Executes the RelayCommand<T> on the current command target.

    Execute(T?)

    Executes the RelayCommand<T> on the current command target.

    NotifyCanExecuteChanged()

    Notifies that the CanExecuteChanged property has changed.

    Events

    Name Description
    CanExecuteChanged

    Event raised when CanExecute(object?) changes.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)