Name: csapi-tizenfx
Summary: Assemblies of Tizen .NET
-Version: 4.0.0.272
+Version: 4.0.0.279
Release: 1
Group: Development/Libraries
License: Apache-2.0
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
./build.sh --full
./build.sh --dummy
-./build.sh --pack 4.0.0-preview1-00272
+./build.sh --pack 4.0.0-preview1-00279
%install
mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
[DllImport(Libraries.Evas)]
internal static extern void evas_object_image_file_set(IntPtr obj, string file, string key);
- [DllImport(Libraries.Evas, EntryPoint = "_evas_object_image_file_get")]
+ [DllImport(Libraries.Evas, EntryPoint = "evas_object_image_file_get")]
internal static extern void _evas_object_image_file_get(IntPtr obj, out IntPtr file, out IntPtr key);
internal static void evas_object_image_file_get(IntPtr obj, out string file, out string key)
/// <since_tizen> 3 </since_tizen>
/// <example>
/// <code>
- /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync();
+ /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync();
/// foreach (AuthenticatorInformation authInfo in authInfos)
/// {
/// string aaid = authInfo.Aaid;
/// <example>
/// <code>
- /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync();
+ /// IEnumerable<AuthenticatorInformation> authInfos = await UafAuthenticatorFinder.DiscoverAuthenticatorsAsync();
/// foreach (AuthenticatorInformation authInfo in authInfos)
/// {
/// string aaid = authInfo.Aaid;
}
}
+ /// <summary>
+ /// A destructor which deallocates attach panel resources.
+ /// </summary>
~AttachPanel()
{
if (isCreationSucceed &&
using System;
using System.Collections.Generic;
-
+using System.ComponentModel;
using Tizen.Internals.Errors;
namespace Tizen.Applications.CoreBackend
/// </summary>
public enum AppEventType
{
+ /// <summary>
+ /// The low memory event.
+ /// </summary>
LowMemory = 0,
+
+ /// <summary>
+ /// The low battery event.
+ /// </summary>
LowBattery,
+
+ /// <summary>
+ /// The system language changed event.
+ /// </summary>
LanguageChanged,
+
+ /// <summary>
+ /// The device orientation changed event.
+ /// </summary>
DeviceOrientationChanged,
+
+ /// <summary>
+ /// The region format changed event.
+ /// </summary>
RegionFormatChanged,
+
+ /// <summary>
+ /// The suspended state changed event of the application.
+ /// </summary>
SuspendedStateChanged
}
+ /// <summary>
+ /// Tag string for this class.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected static readonly string LogTag = typeof(DefaultCoreBackend).Namespace;
+ /// <summary>
+ /// Data structure for event handlers.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected IDictionary<EventType, object> Handlers = new Dictionary<EventType, object>();
+ /// <summary>
+ /// Constructor of DefaultCoreBackend class.
+ /// </summary>
public DefaultCoreBackend()
{
}
+ /// <summary>
+ /// Finalizer of DefaultCoreBackend class.
+ /// </summary>
~DefaultCoreBackend()
{
Dispose(false);
}
- public void AddEventHandler(EventType evType, Action handler)
+ /// <summary>
+ /// Adds an event handler.
+ /// </summary>
+ /// <param name="evType">The type of event.</param>
+ /// <param name="handler">The handler method without arguments.</param>
+ public virtual void AddEventHandler(EventType evType, Action handler)
{
Handlers.Add(evType, handler);
}
- public void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
+ /// <summary>
+ /// Adds an event handler.
+ /// </summary>
+ /// <typeparam name="TEventArgs">The EventArgs type used in arguments of the handler method.</typeparam>
+ /// <param name="evType">The type of event.</param>
+ /// <param name="handler">The handler method with a TEventArgs type argument.</param>
+ public virtual void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
{
Handlers.Add(evType, handler);
}
+ /// <summary>
+ /// Runs the mainloop of the backend.
+ /// </summary>
+ /// <param name="args"></param>
public virtual void Run(string[] args)
{
TizenSynchronizationContext.Initialize();
}
+ /// <summary>
+ /// Exits the mainloop of the backend.
+ /// </summary>
public abstract void Exit();
+ /// <summary>
+ /// Releases all resources.
+ /// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
+ /// </summary>
+ /// <param name="disposing">If true, disposes any disposable objects. If false, does not dispose disposable objects.</param>
protected abstract void Dispose(bool disposing);
+ /// <summary>
+ /// Default implementation for the low memory event.
+ /// </summary>
+ /// <param name="infoHandle"></param>
+ /// <param name="data"></param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
{
LowMemoryStatus status = LowMemoryStatus.None;
}
}
+ /// <summary>
+ /// Default implementation for the low battery event.
+ /// </summary>
+ /// <param name="infoHandle"></param>
+ /// <param name="data"></param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
{
LowBatteryStatus status = LowBatteryStatus.None;
}
}
+ /// <summary>
+ /// Default implementation for the system language changed event.
+ /// </summary>
+ /// <param name="infoHandle"></param>
+ /// <param name="data"></param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
{
string lang;
}
}
+ /// <summary>
+ /// Default implementation for the region format changed event.
+ /// </summary>
+ /// <param name="infoHandle"></param>
+ /// <param name="data"></param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
{
string region;
}
}
+ /// <summary>
+ /// Default implementation for the suspended state changed event.
+ /// </summary>
+ /// <param name="infoHandle"></param>
+ /// <param name="data"></param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void OnDeviceOrientationChangedNative(IntPtr infoHandle, IntPtr data)
{
DeviceOrientation orientation;
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid parameter.</exception>
/// <example>
/// <code>
- /// IEnumerable<string> applicationIds = AppControl.GetMatchedApplicationIds(control);
+ /// IEnumerable<string> applicationIds = AppControl.GetMatchedApplicationIds(control);
/// if (applicationIds != null)
/// {
/// foreach (string id in applicationIds)
/// <example>
/// <code>
/// AppControl appControl = new AppControl();
- /// string myValue = appControl.ExtraData.Get<string>("myKey");
+ /// string myValue = appControl.ExtraData.Get<string>("myKey");
/// </code>
/// </example>
public T Get<T>(string key)
/// <example>
/// <code>
/// AppControl appControl = new AppControl();
- /// IEnumerable<string> keys = appControl.GetKeys();
+ /// IEnumerable<string> keys = appControl.GetKeys();
/// if (keys != null)
/// {
/// foreach (string key in keys)
/// <example>
/// <code>
/// AppControl appControl = new AppControl();
- /// IEnumerable<string> myValue = null;
+ /// IEnumerable<string> myValue = null;
/// bool result = appControl.ExtraData.TryGet("myKey", out myValue);
/// if (result)
/// {
/// bundle.AddItem("string", "a_string");
/// if (bundle.Contains("string"))
/// {
- /// string aValue = bundle.GetItem<string>("string");
+ /// string aValue = bundle.GetItem<string>("string");
/// Console.WriteLine(aValue);
/// }
/// </code>
/// if (bundle.Contains("string"))
/// {
/// object aValue = bundle.GetItem("string");
- /// if (bundle.Is<string>("string");)
+ /// if (bundle.Is<string>("string");)
/// {
/// string aString = (string)aValue;
/// Console.WriteLine(aString);
/// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle();
/// string[] stringArray = { "a", "b", "c" };
/// bundle.AddItem("string_array", stringArray);
- /// if (bundle.Is<string>("string_array"))
+ /// if (bundle.Is<string>("string_array"))
/// {
/// Console.WriteLine("It is a string");
- /// Console.WriteLine(bundle.GetItem<string>("string_array"));
+ /// Console.WriteLine(bundle.GetItem<string>("string_array"));
/// }
- /// else if (bundle.Is<string[]>("string_array"))
+ /// else if (bundle.Is<string[]>("string_array"))
/// {
/// Console.WriteLine("It is a string[]");
- /// string[] anArray = bundle.GetItem<string[]>("string_array");
+ /// string[] anArray = bundle.GetItem<string[]>("string_array");
/// foreach (string value in anArray)
/// {
/// Console.WriteLine(value);
/// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle();
/// string[] stringArray = { "a", "b", "c" };
/// bundle.AddItem("string_array", stringArray);
- /// System.Collections.Generic.IEnumerable<string> aStringEnumerable;
+ /// System.Collections.Generic.IEnumerable<string> aStringEnumerable;
/// if (bundle.TryGetItem("string", out aStringEnumerable))
/// {
/// foreach (string value in aStringEnumerable)
/// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle();
/// string[] stringArray = { "a", "b", "c" };
/// bundle.AddItem("string_array", stringArray);
- /// if (bundle.Is<string[]>("string_array"))
+ /// if (bundle.Is<string[]>("string_array"))
/// {
/// Console.WriteLine("It is a string[]");
- /// string[] anArray = bundle.GetItem<string[]>("string_array");
+ /// string[] anArray = bundle.GetItem<string[]>("string_array");
/// foreach (string value in anArray)
/// {
/// Console.WriteLine(value);
}
}
+ /// <summary>
+ /// Destructor of the BulkData class.
+ /// </summary>
~BulkData()
{
Dispose(false);
}
}
+ /// <summary>
+ /// Destructor of the BulkResultData class.
+ /// </summary>
~BulkResultData()
{
Dispose(false);
_providerID = providerId;
}
+ /// <summary>
+ /// Destructor of the Consumer class.
+ /// </summary>
~Consumer()
{
Dispose(false);
Dispose(true);
}
+ /// <summary>
+ /// Releases the unmanaged resources used by the MatrixCursor class specifying whether to perform a normal dispose operation.
+ /// </summary>
+ /// <param name="disposing">true for a normal dispose operation; false to finalize the handle.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
}
}
+ /// <summary>
+ /// Destructor of the MatrixCursor class.
+ /// </summary>
~MatrixCursor()
{
Dispose(false);
}
}
+ /// <summary>
+ /// Destructor of the Provider class.
+ /// </summary>
~Provider()
{
Dispose(false);
/// </summary>
public enum PackageType
{
+ /// <summary>
+ /// Unknown package.
+ /// </summary>
UNKNOWN,
/// <summary>
/// Tizen native application package.
/// <param name="key">The name of the key to check.</param>
/// <returns>True if the key exists in the preference, otherwise false.</returns>
/// <exception cref="ArgumentException">Thrown if the key is an invalid parameter.</exception>
- /// <exception cref="IOException">Thrown when the method failed due to an internal I/O error.</exception>
+ /// <exception cref="System.IO.IOException">Thrown when the method failed due to an internal I/O error.</exception>
/// <example>
/// <code>
/// Preference.Set("active_user", "Joe");
/// bool exists = Preference.Contains("active_user");
/// if (exists)
/// {
- /// string value = Preference.Get<string>("active_user");
+ /// string value = Preference.Get<istring>("active_user");
/// Console.WriteLine("user {0}", value);
/// }
/// </code>
/// If the key already exists in the preference, the old value will be overwritten with a new value.
/// Data types for supported values are: integer, double, string, and bool.
/// </remarks>
- /// <param name="key">The name of the key to create/modify./param>
+ /// <param name="key">The name of the key to create/modify.</param>
/// <param name="value">The value corresponding to the key.</param>
/// <exception cref="ArgumentException">Thrown if the key is an invalid parameter.</exception>
/// <exception cref="System.IO.IOException">Thrown when the method failed due to an internal I/O error.</exception>
/// bool exists = Preference.Contains("active_user");
/// if (exists)
/// {
- /// string value = Preference.Get<string>("active_user");
+ /// string value = Preference.Get<string>("active_user");
/// Console.WriteLine("user {0}", value);
/// }
/// </code>
_httpHeaders = httpHeaders;
}
+ /// <summary>
+ /// Destructor of the Request class.
+ /// </summary>
~Request()
{
Dispose(false);
private async Task ScanFolderAsyncCore(string folderPath, bool recursive, CancellationToken cancellationToken)
{
- var tcs = new TaskCompletionSource<bool>();
+ var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
using (var cbKeeper = ObjectKeeper.Get(GetScanCompletedCallback(tcs, cancellationToken)))
using (RegisterCancellationAction(tcs, folderPath, cancellationToken))
ValidatePaths(paths);
var pathArray = paths.ToArray();
- var tcs = new TaskCompletionSource<bool>();
+ var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
Interop.MediaInfo.InsertCompletedCallback callback = (error, _) =>
{
ValidatePaths(paths);
- var tcs = new TaskCompletionSource<bool>();
+ var tcs = new TaskCompletionSource<bool>(TaskContinuationOptions.RunContinuationsAsynchronously);
string[] pathArray = paths.ToArray();
Interop.MediaInfo.InsertBurstShotCompletedCallback callback = (error, _) =>
namespace Tizen.Content.MimeType
{
/// <summary>
- /// The MimeUtil API provides functions to map the MIME types to file extensions and vice versa.</summary>
+ /// The MimeUtil API provides functions to map the MIME types to file extensions and vice versa.
+ /// </summary>
/// <remarks>
- /// Conversions are provided from the file extensions to MIME types and from the MIME types to file extensions.</remarks>
+ /// Conversions are provided from the file extensions to MIME types and from the MIME types to file extensions.
+ /// </remarks>
public static class MimeUtil
{
/// <summary>
/// <param name="fileExtension"> The file extension.</param>
/// <example>
/// <code>
- /// string mimeType = MimeUtil.GetMimeType("png");
+ /// string mimeType = MimeUtil.GetMimeType("png");
/// </code>
/// </example>
public static string GetMimeType(string fileExtension)
}
/// <summary>
- /// Gets the file extensions for the given MIME type.</summary>
+ /// Gets the file extensions for the given MIME type.
+ /// </summary>
/// <returns>
/// If successful, returns the list of file extension strings for the given MIME type.
- /// The array of file extension is without the leading dot ('.').</returns>
+ /// The array of file extension is without the leading dot ('.').
+ /// </returns>
/// <param name="mime"> The MIME type.</param>
/// <example>
/// <code>
- /// IEnumerable<string> extColl = MimeUtil.GetFileExtension("video/mpeg");
- /// foreach ( string obj in extColl )
- /// {
- /// Console.WriteLine(obj);
- /// }
+ /// var extColl = MimeUtil.GetFileExtension("video/mpeg");
+ /// foreach ( string obj in extColl )
+ /// {
+ /// Console.WriteLine(obj);
+ /// }
/// </code>
/// </example>
public static IEnumerable<string> GetFileExtension(string mime)
internal enum MimeError : int
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< Internal I/O error */
+ None = Tizen.Internals.Errors.ErrorCode.None,
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory,
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError,
}
}
}
Handle = handle;
}
+ /// <summary>
+ /// The destructor of the Fence class.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
~Fence()
{
Dispose(false);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
Handle = handle;
}
+ /// <summary>
+ /// The destructor of the FenceStatus class.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
~FenceStatus()
{
Dispose(false);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
Handle = handle;
}
+ /// <summary>
+ /// The destructor of the GeofenceManager class.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
~GeofenceManager()
{
Dispose(false);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
</summary>
<remarks>
+
<h2>Overview</h2>
<para>
This API provides functions to set the gofence with a geopoint, MAC address of Wi-Fi, and Bluetooth address.
-Also, notifications on events like changing in service status are provided.<p>
+Also, notifications on events like changing in service status are provided.<p/>
+
There are two kinds of places and fences:<br/>
- Public places and fences that are created by the MyPlace application can be used by all applications.<br/>
-- Private places and fences that are created by the specified application can be used by the same application.<p>
+- Private places and fences that are created by the specified application can be used by the same application.<p/>
+
Notifications can be received about the following events:<br/>
- Zone in when a device enters a specific area.<br/>
- Zone out when a device exits a specific area.<br/>
-- Results and errors for each event requested to geofence module.<p>
+- Results and errors for each event requested to geofence module.<p/>
+
The Geofence manager has the following properties:<br/>
- The geofence type.<br/>
- The status.<br/>
http://tizen.org/feature/location.Geofence<br/>
http://tizen.org/feature/location.wps
</para>
+
</remarks>
*/
namespace Tizen.Location.Geofence {}
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
protected virtual void Dispose(bool disposing)
{
Log.Info(Globals.LogTag, "Dispose");
/// <since_tizen> 3 </since_tizen>
public enum LocationError
{
- None = ErrorCode.None,/**< Successful */
- OutOfMemory = ErrorCode.OutOfMemory,/**< Out of memory error */
- InvalidParameter = ErrorCode.InvalidParameter,/**< Invalid parameter */
- AcessibilityNotallowed = ErrorCode.PermissionDenied,/**< Permission denied */
- NotSupported = ErrorCode.NotSupported,/**< Address family not supported */
- IncorrectMethod = LocationManagerError.Base | 0x01,/**< Location manager contains incorrect method for a given call */
- NetworkFailed = LocationManagerError.Base | 0x02,/**< Network unavailable */
- ServiceNotAvailable = LocationManagerError.Base | 0x03,/**< Location service is not available */
- SettingOff = LocationManagerError.Base | 0x04,/**< GPS/WPS, or MOCK setting is not enabled */
- SecuirtyRestricted = LocationManagerError.Base | 0x05,/**< Restricted by security system policy */
+ /// <summary>
+ /// Successful.
+ /// </summary>
+ None = ErrorCode.None,
+
+ /// <summary>
+ /// Out of memory error.
+ /// </summary>
+ OutOfMemory = ErrorCode.OutOfMemory,
+
+ /// <summary>
+ /// Invalid parameter.
+ /// </summary>
+ InvalidParameter = ErrorCode.InvalidParameter,
+
+ /// <summary>
+ /// Permission denied.
+ /// </summary>
+ AcessibilityNotallowed = ErrorCode.PermissionDenied,
+
+ /// <summary>
+ /// Address family not supported.
+ /// </summary>
+ NotSupported = ErrorCode.NotSupported,
+
+ /// <summary>
+ /// Location manager contains incorrect method for a given call.
+ /// </summary>
+ IncorrectMethod = LocationManagerError.Base | 0x01,
+
+ /// <summary>
+ /// Network unavailable.
+ /// </summary>
+ NetworkFailed = LocationManagerError.Base | 0x02,
+
+ /// <summary>
+ /// Location service is not available.
+ /// </summary>
+ ServiceNotAvailable = LocationManagerError.Base | 0x03,
+
+ /// <summary>
+ /// GPS/WPS, or MOCK setting is not enabled.
+ /// </summary>
+ SettingOff = LocationManagerError.Base | 0x04,
+
+ /// <summary>
+ /// Restricted by security system policy.
+ /// </summary>
+ SecuirtyRestricted = LocationManagerError.Base | 0x05,
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public enum LocationBoundError
{
- None = ErrorCode.None,/**< Successful */
- OutOfMemory = ErrorCode.OutOfMemory,/**< Out of memory error */
- InvalidParameter = ErrorCode.InvalidParameter,/**< Invalid parameter */
- NotSupported = ErrorCode.NotSupported,/**< Not supported */
- IncorrectType = LocationManagerError.BoundsBase | 0x01,/**< Incorrect bounds type for a given call */
- IsAdded = LocationManagerError.BoundsBase | 0x02/**< Cannot remove bounds handle from location manager */
+
+ /// <summary>
+ /// Successful.
+ /// </summary>
+ None = ErrorCode.None,
+
+ /// <summary>
+ /// Out of memory error.
+ /// </summary>
+ OutOfMemory = ErrorCode.OutOfMemory,
+
+ /// <summary>
+ /// Invalid parameter.
+ /// </summary>
+ InvalidParameter = ErrorCode.InvalidParameter,
+
+ /// <summary>
+ /// Not supported.
+ /// </summary>
+ NotSupported = ErrorCode.NotSupported,
+
+ /// <summary>
+ /// Incorrect bounds type for a given call.
+ /// </summary>
+ IncorrectType = LocationManagerError.BoundsBase | 0x01,
+
+ /// <summary>
+ /// Cannot remove bounds handle from location manager.
+ /// </summary>
+ IsAdded = LocationManagerError.BoundsBase | 0x02
}
internal static class LocationErrorFactory
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
/// <since_tizen> 3 </since_tizen>
public enum ServiceState
{
- Disabled = 0, /**<Service is disabled.*/
- Enabled /**<Service is enabled.*/
+ /// <summary>
+ /// Service is disabled.
+ /// </summary>
+ Disabled = 0,
+
+ /// <summary>
+ /// Service is enabled.
+ /// </summary>
+ Enabled
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public enum LocationType
{
- Hybrid = 0, /**<This method selects the best method available at the moment.*/
- Gps, /**<This method uses Global Positioning System.*/
- Wps, /**<This method uses WiFi Positioning System.*/
- Passive, /**<This method uses passive mode.*/
+ /// <summary>
+ /// This method selects the best method available at the moment.
+ /// </summary>
+ Hybrid = 0,
+
+ /// <summary>
+ /// This method uses Global Positioning System.
+ /// </summary>
+ Gps,
+
+ /// <summary>
+ /// This method uses WiFi Positioning System.
+ /// </summary>
+ Wps,
+
+ /// <summary>
+ /// This method uses passive mode.
+ /// </summary>
+ Passive,
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public enum BoundaryType
{
- Rectangle = 0, /**<Rectangular geographical area type. */
- Circle, /**<Rectangular geographical area type. */
- Polygon /**<Rectangular geographical area type. */
+ /// <summary>
+ /// Rectangular geographical area type.
+ /// </summary>
+ Rectangle = 0,
+
+ /// <summary>
+ /// Circle geographical area type.
+ /// </summary>
+ Circle,
+
+ /// <summary>
+ /// Polygon geographical area type.
+ /// </summary>
+ Polygon
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public enum BoundaryState
{
- In = 0, /**< Boundary In (Zone In) */
- Out /**< Boundary Out (Zone Out) */
+ /// <summary>
+ /// Boundary In (Zone In).
+ /// </summary>
+ In = 0,
+
+ /// <summary>
+ /// Boundary Out (Zone Out).
+ /// </summary>
+ Out
}
}
namespace Tizen.Location
{
+ /// <summary>
+ /// An extended EventArgs class which contains the changed satellite status.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class SatelliteStatusChangedEventArgs : EventArgs
{
/// <summary>
/// <summary>
/// An extended EventArgs class contains the changed location service state.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class ServiceStateChangedEventArgs : EventArgs
{
/// <summary>
namespace Tizen.Location
{
+ /// <summary>
+ /// An extended EventArgs class which contains the changed setting status.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class SettingChangedEventArgs : EventArgs
{
/// <summary>
namespace Tizen.Location
{
+ /// <summary>
+ /// An extended EventArgs class which contains the changed zone status.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class ZoneChangedEventArgs : EventArgs
{
/// <summary>
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
/// <typeparam name="T"></typeparam>
public abstract class MapServiceRequest<T> : IDisposable
{
- protected TaskCompletionSource<IEnumerable<T>> _requestTask;
- protected string errMessage;
- protected int? _requestID;
- protected ServiceRequestType _type;
+ internal TaskCompletionSource<IEnumerable<T>> _requestTask;
+ internal string errMessage;
+ internal int? _requestID;
+ internal ServiceRequestType _type;
internal Action startExecutionAction;
internal Interop.ErrorCode errorCode;
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
#region IDisposable Support
private bool _disposedValue = false;
+ /// <summary>
+ /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
+ /// </summary>
+ /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
protected virtual void Dispose(bool disposing)
{
if (!_disposedValue)
}
}
+ /// <summary>
+ /// Releases all resources used by the EmailMessage.
+ /// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
+ /// <summary>
+ /// Releases all resources used by the EmailMessage.
+ /// </summary>
+ /// <param name="disposing">Disposing by User</param>
protected virtual void Dispose(bool disposing)
{
if (_disposed)
*/
-/// <summary>
-/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
-/// </summary>
-/// <remarks>
-/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
-/// </remarks>
namespace Tizen.Messaging.Email
{
+ /// <summary>
+ /// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
+ /// </summary>
+ /// <remarks>
+ /// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
+ /// </remarks>
}
(this as MmsMessage)?.SetAttachments();
}
+ /// <summary>
+ /// Destructor
+ /// </summary>
~Message()
{
Dispose(false);
}
+ /// <summary>
+ /// Releases all resources used by the Message.
+ /// </summary>
public void Dispose()
{
Dispose(true);
* limitations under the License.
*/
-/// <summary>
-/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
-/// </summary>
-/// <remarks>
-/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
-/// </remarks>
namespace Tizen.Messaging.Messages
{
-}
+ /// <summary>
+ /// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
+ /// </summary>
+ /// <remarks>
+ /// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
+ /// </remarks>
+}
\ No newline at end of file
-/**
-<summary>
-The Tizen.Network.WiFiDirect namespace provides classes to manage the settings of Wi-Fi Direct.
-In addition, this namespace provides classes to connect and disconnect remote devices using Wi-Fi Direct.
-</summary>
-*/
+/// <summary>
+/// The Tizen.Network.WiFiDirect namespace provides classes to manage the settings of Wi-Fi Direct.
+/// In addition, this namespace provides classes to connect and disconnect remote devices using Wi-Fi Direct.
+/// </summary>
namespace Tizen.Network.WiFiDirect {}
-/// <summary>
-/// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers.
-/// </summary>
-/// <remarks>
-/// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers.
-/// </remarks>
-/// <since_tizen> 4 </since_tizen>
-namespace Tizen.PhonenumberUtils {}
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Tizen.PhonenumberUtils
+{
+ /// <summary>
+ /// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers.
+ /// </summary>
+ /// <remarks>
+ /// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers.
+ /// </remarks>
+ /// <since_tizen> 4 </since_tizen>
+}
}
}
+ /// <summary>
+ /// Destructor
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
~PhonenumberUtils()
{
Dispose(false);
internal CalendarDatabase()
{
- ///To be created in CalendarManager only
+ /*To be created in CalendarManager only*/
}
/// <summary>
{
internal enum CalendarError
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory (-12) */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter (-22) */
- FileNoSpace = Tizen.Internals.Errors.ErrorCode.FileNoSpaceOnDevice, /** <FS Full (-28) */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied (-13) */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Not supported (-1073741822) */
- NoData = Tizen.Internals.Errors.ErrorCode.NoData, /**< Requested data does not exist (-61) */
- DBLocked = Globals.ErrorCalendar | 0x81, /**< Database table locked or file locked (-33619839) */
- ErrorDB = Globals.ErrorCalendar | 0x9F, /**< Unknown DB error (-33619809) */
- IPCNotAvailable = Globals.ErrorCalendar | 0xB1, /**< IPC server is not available (-33619791) */
- ErrorIPC = Globals.ErrorCalendar | 0xBF, /**< Unknown IPC error (-33619777) */
- ErrorSystem = Globals.ErrorCalendar | 0xEF, /**< Internal system module error (-33619729) */
- ErrorInternal = Globals.ErrorCalendar | 0x04, /**< Implementation Error Temporary Use (-33619713) */
- DBNotFound = Globals.ErrorCalendar | 0x05, /**< No data in DB (-33554427) */
+ None = Tizen.Internals.Errors.ErrorCode.None,
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory,
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,
+ FileNoSpace = Tizen.Internals.Errors.ErrorCode.FileNoSpaceOnDevice,
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied,
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported,
+ NoData = Tizen.Internals.Errors.ErrorCode.NoData,
+ DBLocked = Globals.ErrorCalendar | 0x81,
+ ErrorDB = Globals.ErrorCalendar | 0x9F,
+ IPCNotAvailable = Globals.ErrorCalendar | 0xB1,
+ ErrorIPC = Globals.ErrorCalendar | 0xBF,
+ ErrorSystem = Globals.ErrorCalendar | 0xEF,
+ ErrorInternal = Globals.ErrorCalendar | 0x04,
+ DBNotFound = Globals.ErrorCalendar | 0x05,
};
internal static class Globals
{
_listHandle = handle;
+ int error = Interop.List.First(_listHandle);
+ if (CalendarError.None != (CalendarError)error)
+ {
+ Log.Error(Globals.LogTag, "MoveFirst Failed with error " + error);
+ throw CalendarErrorFactory.GetException(error);
+ }
+
_memoryPressure += this.Count * CalendarViews.Record.AverageSize;
GC.AddMemoryPressure(_memoryPressure);
}
/// <exception cref="ArgumentException">Thrown when one of the arguments provided to a method is not valid</exception>
public void SetProjection(uint[] propertyIdArray)
{
+ if (propertyIdArray == null)
+ {
+ throw new ArgumentException("Invalid Parameters Provided");
+ }
+
int error = Interop.Query.SetProjection(_queryHandle, propertyIdArray, propertyIdArray.Length);
if (CalendarError.None != (CalendarError)error)
{
s_reminderAlerted -= value;
if (s_reminderAlerted == null)
{
- /// _reminderAlertedCallback is removed by .Net Core
int error = Interop.Reminder.Remove(_reminderAlertedCallback, IntPtr.Zero);
if (CalendarError.None != (CalendarError)error)
{
namespace Tizen.Pims.Calendar
{
- /// <summary>
- /// This namespace provides information about views with properties.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- /// <remarks>
- /// s are provided to access and handle entities. A view is a structure, which has property elements.
- /// A view is almost the same as a database "VIEW", which limits access and guarantees performance.
- /// A "record" represents a single row of the views.
- /// A record can have basic properties of five types: integer, string, long, double, CalendarTime.
- /// </remarks>
namespace CalendarViews
{
+ /// <summary>
+ /// This namespace provides information about views with properties.
+ /// </summary>
+ /// <since_tizen> 4 </since_tizen>
+ /// <remarks>
+ /// s are provided to access and handle entities. A view is a structure, which has property elements.
+ /// A view is almost the same as a database "VIEW", which limits access and guarantees performance.
+ /// A "record" represents a single row of the views.
+ /// A record can have basic properties of five types: integer, string, long, double, CalendarTime.
+ /// </remarks>
+
internal static class Property
{
/// data type mask 0x0FF00000
* limitations under the License.
*/
-/// <summary>
-/// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule.
-/// </summary>
-/// <remarks>
-/// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule.
-/// </remarks>
-/// <since_tizen> 4 </since_tizen>
-namespace Tizen.Pims.Calendar {}
+namespace Tizen.Pims.Calendar
+{
+ /// <summary>
+ /// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule.
+ /// </summary>
+ /// <remarks>
+ /// The Tizen.Pims.Calendar namespace provides classes for managing calendar information for schedule.
+ /// </remarks>
+ /// <since_tizen> 4 </since_tizen>
+}
namespace Tizen.Pims.Contacts
{
- /// <summary>
- /// This namespace provides information about views with properties.
- /// </summary>
- /// <remarks>
- /// Views are provided to access and handle entities. A view is a structure, which has property elements.
- /// A view is almost the same as a database "VIEW", which limits access and guarantees performance.
- /// A "record" represents a single row of the views.
- /// A record can have basic properties of five types: integer, string, boolean, long, double.
- /// </remarks>
- /// <since_tizen> 4 </since_tizen>
namespace ContactsViews
{
+ /// <summary>
+ /// This namespace provides information about views with properties.
+ /// </summary>
+ /// <remarks>
+ /// Views are provided to access and handle entities. A view is a structure, which has property elements.
+ /// A view is almost the same as a database "VIEW", which limits access and guarantees performance.
+ /// A "record" represents a single row of the views.
+ /// A record can have basic properties of five types: integer, string, boolean, long, double.
+ /// </remarks>
+ /// <since_tizen> 4 </since_tizen>
+
internal static class Property
{
private const uint AddressBook = 0x00100000;
* limitations under the License.
*/
-/// <summary>
-/// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people.
-/// </summary>
-/// <remarks>
-/// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people.
-/// </remarks>
-/// <since_tizen> 4 </since_tizen>
-namespace Tizen.Pims.Contacts {}
+namespace Tizen.Pims.Contacts
+{
+ /// <summary>
+ /// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people.
+ /// </summary>
+ /// <remarks>
+ /// The Tizen.Pims.Contacts namespace provides classes for managing contact information for people.
+ /// </remarks>
+ /// <since_tizen> 4 </since_tizen>
+}
\ No newline at end of file
internal enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NoCallbackFunction = ErrorInputMethod | 0x0001, /**< Necessary callback function is not set */
- NotRunning = ErrorInputMethod | 0x0002, /**< IME main loop isn't started yet */
- OperationFailed = ErrorInputMethod | 0x0010, /**< Operation failed */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory /**< out of memory */
+ None = Tizen.Internals.Errors.ErrorCode.None,
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied,
+ NoCallbackFunction = ErrorInputMethod | 0x0001,
+ NotRunning = ErrorInputMethod | 0x0002,
+ OperationFailed = ErrorInputMethod | 0x0010,
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory
};
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
_realHandle = _handle;
}
+ /// <summary>
+ /// This API creates handle for editor window.
+ /// </summary>
protected override IntPtr CreateHandle(EvasObject parent)
{
return _handle;
}
+ /// <summary>
+ /// This API gets handle for editor window.
+ /// </summary>
public IntPtr GetHandle()
{
return _handle;
{
/// <summary>
/// Enumeration of the key codes.
- /// If keycode & 0xff000000 == 0x01000000 then this key code is directly encoded 24-bit UCS character.The UCS value is keycode & 0x00ffffff.
+ /// If keycode & 0xff000000 == 0x01000000 then this key code is directly encoded 24-bit UCS character.The UCS value is keycode & 0x00ffffff.
/// Defines the list of keys supported by the system.Note that certain keys may not be available on all devices.
/// </summary>
public enum KeyCode
private set;
}
+ /// <summary>
+ /// compare whether ContextId are equal
+ /// </summary>
public bool Equals(ContextId other)
{
return this.Id == other.Id;
internal enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- OperationFailed = ErrorInputMethodManager | 0x0010, /**< Operation failed */
+ None = Tizen.Internals.Errors.ErrorCode.None,
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter,
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied,
+ OperationFailed = ErrorInputMethodManager | 0x0010,
};
[DllImport(Libraries.InputMethodManager, EntryPoint = "ime_manager_show_ime_list")]
internal enum SttError
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */
- RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Device or resource busy */
- OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */
- InvalidState = ErrorStt | 0x01, /**< Invalid state */
- InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */
- EngineNotFound = ErrorStt | 0x03, /**< No available engine */
- OperationFailed = ErrorStt | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */
- RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */
- NoSpeech = ErrorStt | 0x07, /**< No speech while recording*/
- InProgressToReady = ErrorStt | 0x08, /**< Progress to ready is not finished*/
- InProgressToRecording = ErrorStt | 0x09, /**< Progress to recording is not finished*/
- InProgressToProcessing = ErrorStt | 0x10, /**< Progress to processing is not finished*/
- ServiceReset = ErrorStt | 0x11 /**< Service reset*/
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */
+ RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Device or resource busy */
+ OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */
+ InvalidState = ErrorStt | 0x01, /* Invalid state */
+ InvalidLanguage = ErrorStt | 0x02, /* Invalid language */
+ EngineNotFound = ErrorStt | 0x03, /* No available engine */
+ OperationFailed = ErrorStt | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */
+ RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */
+ NoSpeech = ErrorStt | 0x07, /* No speech while recording */
+ InProgressToReady = ErrorStt | 0x08, /* Progress to ready is not finished */
+ InProgressToRecording = ErrorStt | 0x09, /* Progress to recording is not finished */
+ InProgressToProcessing = ErrorStt | 0x10, /* Progress to processing is not finished */
+ ServiceReset = ErrorStt | 0x11 /* Service reset */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
}
/// <summary>
- /// A method to release resources.
+ /// Method to release resources.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Dispose()
{
Dispose(true);
}
+ /// <summary>
+ /// Method to release resources.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// <param name="disposing">
+ /// The boolean value for destoying stt handle.
+ /// </param>
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
public enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */
- InvalidState = ErrorStt | 0x01, /**< Invalid state */
- InvalidLanguage = ErrorStt | 0x02, /**< Invalid language */
- OperationFailed = ErrorStt | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorStt | 0x05, /**< Not supported feature of current engine */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- RecordingTimedOut = ErrorStt | 0x06, /**< Recording timed out */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */
+ InvalidState = ErrorStt | 0x01, /* Invalid state */
+ InvalidLanguage = ErrorStt | 0x02, /* Invalid language */
+ OperationFailed = ErrorStt | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorStt | 0x05, /* Not supported feature of current engine */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ RecordingTimedOut = ErrorStt | 0x06, /* Recording timed out */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal enum TtsError
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network is down */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from the STT service */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< STT NOT supported */
- InvalidState = ErrorTts | 0x01, /**< Invalid state */
- InvalidVoice = ErrorTts | 0x02, /**< Invalid language */
- EngineNotFound = ErrorTts | 0x03, /**< No available engine */
- OperationFailed = ErrorTts | 0x04, /**< Operation failed */
- AudioPolicyBlocked = ErrorTts | 0x05, /**< Audio policy blocked */
- NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine*/
- ServiceReset = ErrorTts | 0x07 /**< Service reset*/
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ OutOfNetwork = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network is down */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from the STT service */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* STT NOT supported */
+ InvalidState = ErrorTts | 0x01, /* Invalid state */
+ InvalidVoice = ErrorTts | 0x02, /* Invalid language */
+ EngineNotFound = ErrorTts | 0x03, /* No available engine */
+ OperationFailed = ErrorTts | 0x04, /* Operation failed */
+ AudioPolicyBlocked = ErrorTts | 0x05, /* Audio policy blocked */
+ NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine*/
+ ServiceReset = ErrorTts | 0x07 /* Service reset*/
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal set;
}
+ /// <summary>
+ /// A voice type (e.g. #TTS_VOICE_TYPE_MALE, #TTS_VOICE_TYPE_FEMALE).
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Voice VoiceType
{
get;
Dispose(true);
}
+ /// <summary>
+ /// Method to release resources.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// <param name="disposing">
+ /// The boolean value for destoying tts handle.
+ /// </param>
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
public enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /**< Network down(Out of network) */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- InvalidState = ErrorTts | 0x01, /**< Invalid state */
- InvalidVoice = ErrorTts | 0x02, /**< Invalid voice */
- OperationFailed = ErrorTts | 0x04, /**< Operation failed */
- NotSupportedFeature = ErrorTts | 0x06, /**< Not supported feature of current engine */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< Device or resource busy */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ NetworkDown = Tizen.Internals.Errors.ErrorCode.Networkdown, /* Network down(Out of network) */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ InvalidState = ErrorTts | 0x01, /* Invalid state */
+ InvalidVoice = ErrorTts | 0x02, /* Invalid voice */
+ OperationFailed = ErrorTts | 0x04, /* Operation failed */
+ NotSupportedFeature = ErrorTts | 0x06, /* Not supported feature of current engine */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* Device or resource busy */
};
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
internal enum ErrorCode
{
- None = Tizen.Internals.Errors.ErrorCode.None, /**< Successful */
- OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /**< Out of Memory */
- IoError = Tizen.Internals.Errors.ErrorCode.IoError, /**< I/O error */
- InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /**< Invalid parameter */
- TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /**< No answer from service */
- RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /**< Busy recorder */
- PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /**< Permission denied */
- NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /**< VC NOT supported */
- InvalidState = ErrorVoiceControl | 0x011, /**< Invalid state */
- InvalidLanguage = ErrorVoiceControl | 0x012, /**< Invalid language */
- EngineNotFound = ErrorVoiceControl | 0x013, /**< No available engine */
- OperationFailed = ErrorVoiceControl | 0x014, /**< Operation failed */
- OperationRejected = ErrorVoiceControl | 0x015, /**< Operation rejected */
- IterationEnd = ErrorVoiceControl | 0x016, /**< List reached end */
- Empty = ErrorVoiceControl | 0x017, /**< List empty */
- ServiceReset = ErrorVoiceControl | 0x018, /**< Service daemon reset (Since 3.0) */
- InProgressToReady = ErrorVoiceControl | 0x019, /**< In progress to ready (Since 3.0) */
- InProgressToRecording = ErrorVoiceControl | 0x020, /**< In progress to recording (Since 3.0) */
- InProgressToProcessing = ErrorVoiceControl | 0x021 /**< In progress to processing (Since 3.0) */
+ None = Tizen.Internals.Errors.ErrorCode.None, /* Successful */
+ OutOfMemory = Tizen.Internals.Errors.ErrorCode.OutOfMemory, /* Out of Memory */
+ IoError = Tizen.Internals.Errors.ErrorCode.IoError, /* I/O error */
+ InvalidParameter = Tizen.Internals.Errors.ErrorCode.InvalidParameter, /* Invalid parameter */
+ TimedOut = Tizen.Internals.Errors.ErrorCode.TimedOut, /* No answer from service */
+ RecorderBusy = Tizen.Internals.Errors.ErrorCode.ResourceBusy, /* Busy recorder */
+ PermissionDenied = Tizen.Internals.Errors.ErrorCode.PermissionDenied, /* Permission denied */
+ NotSupported = Tizen.Internals.Errors.ErrorCode.NotSupported, /* VC NOT supported */
+ InvalidState = ErrorVoiceControl | 0x011, /* Invalid state */
+ InvalidLanguage = ErrorVoiceControl | 0x012, /* Invalid language */
+ EngineNotFound = ErrorVoiceControl | 0x013, /* No available engine */
+ OperationFailed = ErrorVoiceControl | 0x014, /* Operation failed */
+ OperationRejected = ErrorVoiceControl | 0x015, /* Operation rejected */
+ IterationEnd = ErrorVoiceControl | 0x016, /* List reached end */
+ Empty = ErrorVoiceControl | 0x017, /* List empty */
+ ServiceReset = ErrorVoiceControl | 0x018, /* Service daemon reset */
+ InProgressToReady = ErrorVoiceControl | 0x019, /* In progress to ready */
+ InProgressToRecording = ErrorVoiceControl | 0x020, /* In progress to recording */
+ InProgressToProcessing = ErrorVoiceControl | 0x021 /* In progress to processing */
};
internal enum VoiceCommandType