{!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 ObservableObject | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ObservableObject

    A base class for objects of which the properties must be observable.

    Inheritance
    object
    ObservableObject
    Implements
    INotifyPropertyChanged
    INotifyPropertyChanging
    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 abstract class ObservableObject : INotifyPropertyChanged, INotifyPropertyChanging

    Methods

    Name Description
    OnPropertyChanged(PropertyChangedEventArgs)

    Raises the PropertyChanged event.

    OnPropertyChanged(string?)

    Raises the PropertyChanged event.

    OnPropertyChanging(PropertyChangingEventArgs)

    Raises the PropertyChanging event.

    OnPropertyChanging(string?)

    Raises the PropertyChanging event.

    SetProperty<T>(T, T, Action<T>, string?)

    Sets the property and raises the PropertyChanging and PropertyChanged events.

    SetProperty<T>(T, T, EqualityComparer<T>, Action<T>, string?)

    Sets the property and raises the PropertyChanging and PropertyChanged events.

    SetProperty<T>(ref T, T, EqualityComparer<T>, string?)

    Sets the property and raises the PropertyChanging and PropertyChanged events.

    SetProperty<T>(ref T, T, string?)

    Sets the property and raises the PropertyChanging and PropertyChanged events.

    SetProperty<T, TModel>(T, T, TModel, Action<TModel, T>, string?)

    Sets the property and raises the PropertyChanging and PropertyChanged events.

    Events

    Name Description
    PropertyChanged

    Occurs when a property value has changed.

    PropertyChanging

    Occurs when a property value is changing.

    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)