MediaFrameSource.FormatChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the current frame format of the MediaFrameSource changes.
// Register
event_token FormatChanged(TypedEventHandler<MediaFrameSource, IInspectable const&> const& handler) const;
// Revoke with event_token
void FormatChanged(event_token const* cookie) const;
// Revoke with event_revoker
MediaFrameSource::FormatChanged_revoker FormatChanged(auto_revoke_t, TypedEventHandler<MediaFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaFrameSource,object> FormatChanged;
function onFormatChanged(eventArgs) { /* Your code */ }
mediaFrameSource.addEventListener("formatchanged", onFormatChanged);
mediaFrameSource.removeEventListener("formatchanged", onFormatChanged);
- or -
mediaFrameSource.onformatchanged = onFormatChanged;
Public Custom Event FormatChanged As TypedEventHandler(Of MediaFrameSource, Object)
Event Type
TypedEventHandler<MediaFrameSource,IInspectable>
Remarks
Get the current frame format of the media frame source by accessing the CurrentFormat property.