Experimental: this API is experimental and might be changed or removed in the future.

IUIElementDataWatch.RegisterWatch

Switch to Manual
public Experimental.UIElements.IUIElementDataWatchRequest RegisterWatch (Object toWatch, Action<Object> watchNotification);

Parameters

toWatchThe object to watch.
watchNotificationCallback.

Returns

IUIElementDataWatchRequest A reference to this datawatch request. Disposing it will ensure any native resources will also be released.

Description

Starts watching an object. When watched, all changes on an object will trigger the callback to be invoked.