Class AudioControl
Inheritance
System.Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Control
Windows.UI.Xaml.Controls.UserControl
AudioControl
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
IDisposable
Namespace: pdftron.PDF.Tools.Controls.Multimedia
Assembly: pdftron.PDF.Tools.dll
Syntax
public sealed class AudioControl : UserControl, IDependencyObject, IDependencyObject2, IUIElement, IUIElement2, IUIElement3, IUIElement4, IUIElement5, IUIElement7, IUIElement8, IUIElement9, IUIElement10, IUIElementOverrides, IUIElementOverrides7, IUIElementOverrides8, IUIElementOverrides9, IAnimationObject, IVisualElement, IFrameworkElement, IFrameworkElement2, IFrameworkElement3, IFrameworkElement4, IFrameworkElement6, IFrameworkElement7, IFrameworkElementProtected7, IFrameworkElementOverrides, IFrameworkElementOverrides2, IControl, IControl2, IControl3, IControl4, IControl5, IControl7, IControlProtected, IControlOverrides, IControlOverrides6, IUserControl, ICloseableControl, IDisposable
Constructors
AudioControl(PDFViewCtrl, Point)
Declaration
public AudioControl(PDFViewCtrl mPDFView, Point target)
Parameters
Type | Name | Description |
---|---|---|
PDFViewCtrl | mPDFView | |
Windows.Foundation.Point | target |
Properties
IsReady
Audio Control is initialized and ready to be used
Declaration
public bool IsReady { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ViewModel
Declaration
public AudioControlViewModel ViewModel { get; }
Property Value
Type | Description |
---|---|
AudioControlViewModel |
Methods
CloseControl()
Declaration
public void CloseControl()
Dispose()
Declaration
public void Dispose()
InitializeAsync()
Initialize all resources needed for Audio/Sound recording and playback
Declaration
public Task<bool> InitializeAsync()
Returns
Type | Description |
---|---|
Task<System.Boolean> |
RecordedFile()
The result file recorded once RecordingCompleted is raised
Declaration
public StorageFile RecordedFile()
Returns
Type | Description |
---|---|
Windows.Storage.StorageFile |
Events
CloseRequested
Raised when Audio Control is requesting to be closed
Declaration
public event AudioControl.OnCloseRequestedHandler CloseRequested
Event Type
Type | Description |
---|---|
AudioControl.OnCloseRequestedHandler |
ControlClosed
Declaration
public event ControlClosedDelegate ControlClosed
Event Type
Type | Description |
---|---|
ControlClosedDelegate |
RecordingCompleted
Raised when the recording is completed and audio file saved to temp folder
Declaration
public event AudioControl.OnRecordingCompletedHandler RecordingCompleted
Event Type
Type | Description |
---|---|
AudioControl.OnRecordingCompletedHandler |
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
IDisposable