[DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_load")]
internal static extern IntPtr LoadNotification(string appID, int uniqueID);
+ [DllImport(Libraries.NotificationEventListener, EntryPoint = "notification_get_all_count")]
+ internal static extern ErrorCode GetAllCount(NotificationType type, out int count);
+
internal static ErrorCode GetAppId(NotificationSafeHandle handle, out string appid)
{
ErrorCode err;
return eventArgs;
}
+
+ /// <summary>
+ /// Gets the number of all notifications
+ /// </summary>
+ /// <returns>The number of all notifications</returns>
+ /// <exception cref="UnauthorizedAccessException"> Thrown in case of a permission is denied.</exception>
+ /// <exception cref="InvalidOperationException">Thrown in case of any internal error.</exception>
+ /// <privilege>http://tizen.org/privilege/notification</privilege>
+ /// <since_tizen> 4 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static int GetAllCount()
+ {
+ int count;
+ Interop.NotificationEventListener.ErrorCode error;
+
+ error = Interop.NotificationEventListener.GetAllCount(NotificationType.None, out count);
+ if (error != Interop.NotificationEventListener.ErrorCode.None)
+ {
+ if (error == Interop.NotificationEventListener.ErrorCode.PermissionDenied)
+ {
+ throw NotificationEventListenerErrorFactory.GetException(Interop.NotificationEventListener.ErrorCode.PermissionDenied, "failed to get all count");
+ }
+ else
+ {
+ throw NotificationEventListenerErrorFactory.GetException(Interop.NotificationEventListener.ErrorCode.InvalidOperation, "failed to get all count");
+ }
+ }
+
+ return count;
+ }
}
}
{
add
{
- ValidationUtil.ValidateFeatureSupported(Features.RawVideo);
+ ValidationUtil.ValidateFeatureSupported(PlayerFeatures.RawVideo);
_videoFrameDecoded += value;
}
remove
{
- ValidationUtil.ValidateFeatureSupported(Features.RawVideo);
+ ValidationUtil.ValidateFeatureSupported(PlayerFeatures.RawVideo);
_videoFrameDecoded -= value;
}
/// Gets or sets the display.
/// </summary>
/// <value>A <see cref="Multimedia.Display"/> that specifies the display.</value>
- /// <remarks>The player must be in the <see cref="PlayerState.Idle"/> state.</remarks>
+ /// <remarks>
+ /// The player must be in the <see cref="PlayerState.Idle"/> state.<br/>
+ /// The raw video feature(http://tizen.org/feature/multimedia.raw_video) is required if
+ /// the display is created with <see cref="MediaView"/>.
+ /// </remarks>
/// <exception cref="ObjectDisposedException">The player has already been disposed of.</exception>
/// <exception cref="ArgumentException">The value has already been assigned to another player.</exception>
/// <exception cref="InvalidOperationException">The player is not in the valid state.</exception>
+ /// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <since_tizen> 3 </since_tizen>
public Display Display
{
{
ValidatePlayerState(PlayerState.Idle);
+ if (value != null && value.HasMediaView)
+ {
+ ValidationUtil.ValidateFeatureSupported(PlayerFeatures.RawVideo);
+ }
+
if (value?.Owner != null)
{
if (ReferenceEquals(this, value.Owner))
{
if (_audioEffect == null)
{
- throw new NotSupportedException($"The feature({Features.AudioEffect}) is not supported.");
+ throw new NotSupportedException($"The feature({PlayerFeatures.AudioEffect}) is not supported.");
}
return _audioEffect;
RetrieveProperties();
- if (Features.IsSupported(Features.AudioEffect))
+ if (Features.IsSupported(PlayerFeatures.AudioEffect))
{
_audioEffect = new AudioEffect(this);
}
- if (Features.IsSupported(Features.RawVideo))
+ if (Features.IsSupported(PlayerFeatures.RawVideo))
{
RegisterVideoFrameDecodedCallback();
}
/// <since_tizen> 3 </since_tizen>
public async Task<CapturedFrame> CaptureVideoAsync()
{
- ValidationUtil.ValidateFeatureSupported(Features.RawVideo);
+ ValidationUtil.ValidateFeatureSupported(PlayerFeatures.RawVideo);
ValidatePlayerState(PlayerState.Playing, PlayerState.Paused);
--- /dev/null
+/*
+ * 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.Multimedia
+{
+ internal static class PlayerFeatures
+ {
+ internal const string AudioEffect = "http://tizen.org/feature/multimedia.custom_audio_effect";
+ internal const string RawVideo = "http://tizen.org/feature/multimedia.raw_video";
+ }
+}
{
internal static class Features
{
- internal const string AudioEffect = "http://tizen.org/feature/multimedia.custom_audio_effect";
- internal const string RawVideo = "http://tizen.org/feature/multimedia.raw_video";
-
internal static bool IsSupported(string featureKey)
{
- bool supported = false;
- Information.TryGetValue(featureKey, out supported);
- return supported;
+ return Information.TryGetValue(featureKey, out bool supported) && supported;
}
}
/// Initializes a new instance of the <see cref="Display"/> class with a <see cref="MediaView"/> class.
/// </summary>
/// <param name="mediaView">A <see cref="MediaView"/> to display.</param>
- /// <feature>http://tizen.org/feature/multimedia.raw_video</feature>
- /// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <since_tizen> 3 </since_tizen>
public Display(MediaView mediaView)
{
- ValidationUtil.ValidateFeatureSupported(Features.RawVideo);
-
if (mediaView == null)
{
throw new ArgumentNullException(nameof(mediaView));
}
_setter = new EvasDisplaySetter(DisplayType.Surface, mediaView);
+
+ HasMediaView = true;
}
/// <summary>
private object _owner;
+ internal bool HasMediaView { get; } = false;
+
internal object Owner => _owner;
internal void SetOwner(object newOwner)
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ActivatedSignalType : global::System.IDisposable
+ internal class ActivatedSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ConnectionTrackerInterface : SignalObserver
+ internal class ConnectionTrackerInterface : SignalObserver
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfEventSignalType : global::System.IDisposable
+ internal class ImfEventSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
+++ /dev/null
-/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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.
- *
- */
-using System;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.NUI
-{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfVoidSignalType : global::System.IDisposable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- /// <summary>
- /// swigCMemOwn
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected bool swigCMemOwn;
-
- internal ImfVoidSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfVoidSignalType obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
- /// <summary>
- /// A Flat to check if it is already disposed.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected bool disposed = false;
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- ~ImfVoidSignalType()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public void Dispose()
- {
- //Throw excpetion if Dispose() is called in separate thread.
- if (!Window.IsInstalled())
- {
- throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
- }
-
- if (isDisposeQueued)
- {
- Dispose(DisposeTypes.Implicit);
- }
- else
- {
- Dispose(DisposeTypes.Explicit);
- System.GC.SuppressFinalize(this);
- }
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected virtual void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_ImfVoidSignalType(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- disposed = true;
- }
-
- /// <summary>
- /// The contructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfVoidSignalType() : this(NDalicManualPINVOKE.new_ImfVoidSignalType(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Queries whether there are any connected slots.
- /// </summary>
- /// <returns>True if there are any slots connected to the signal</returns>
- /// <since_tizen> 3 </since_tizen>
- public bool Empty()
- {
- bool ret = NDalicManualPINVOKE.ImfVoidSignalType_Empty(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Queries the number of slots.
- /// </summary>
- /// <returns>The number of slots connected to this signal</returns>
- /// <since_tizen> 3 </since_tizen>
- public uint GetConnectionCount()
- {
- uint ret = NDalicManualPINVOKE.ImfVoidSignalType_GetConnectionCount(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Connects a function.
- /// </summary>
- /// <param name="func">The function to connect</param>
- /// <since_tizen> 3 </since_tizen>
- public void Connect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_0(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- /// <summary>
- /// Disconnects a function.
- /// </summary>
- /// <param name="func">The function to disconnect</param>
- /// <since_tizen> 3 </since_tizen>
- public void Disconnect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
- /// <summary>
- /// Connects a member function.
- /// </summary>
- /// <param name="connectionTracker">An object which must implement the ConnectionTrackerInterface</param>
- /// <param name="arg1">The member function to connect</param>
- /// <since_tizen> 4 </since_tizen>
- public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1)
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Emits the signal.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public void Emit()
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Emit(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- }
-
-}
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class KeyboardResizedSignalType : global::System.IDisposable
+ internal class KeyboardResizedSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class LanguageChangedSignalType : global::System.IDisposable
+ internal class LanguageChangedSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
namespace Tizen.NUI
{
- /// <summary>
- /// This should be internal, please do not use.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class SWIGTYPE_p_CallbackBase
+ internal class SWIGTYPE_p_CallbackBase
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
namespace Tizen.NUI
{
- /// <summary>
- /// This should be internal, please do not use.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class SWIGTYPE_p_Dali__CallbackBase
+ internal class SWIGTYPE_p_Dali__CallbackBase
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
namespace Tizen.NUI
{
- /// <summary>
- /// This should be internal, please do not use.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class SWIGTYPE_p_Dali__FunctorDelegate
+ internal class SWIGTYPE_p_Dali__FunctorDelegate
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class SignalObserver : global::System.IDisposable
+ internal class SignalObserver : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
namespace Tizen.NUI
{
- //Please do not use! this will be internal
- /// <summary>
- /// Abstract Interface used by a slot to inform a signal it is disconnecting.<br />
- /// This is used by the slot if wants to disconnect or is deleted.<br />
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class SlotObserver : global::System.IDisposable
+ internal class SlotObserver : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>swigCMemOwn.</summary>
namespace Tizen.NUI
{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class StatusSignalType : global::System.IDisposable
+ internal class StatusSignalType : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>
}
/// <summary>
- /// Downcasts a handle to imageView handle.
- /// </summary>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " +
- "Like: " +
- "BaseHandle handle = new ImageView(imagePath); " +
- "ImageView image = handle as ImageView")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new static ImageView DownCast(BaseHandle handle)
- {
- ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Sets this ImageView from the given URL.<br />
/// If the URL is empty, ImageView will not display anything.<br />
/// </summary>
}
/// <summary>
- /// Downcasts a handle to textLabel handle
- /// </summary>
- /// <param name="handle"></param>
- /// <returns></returns>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " +
- "Like: " +
- "BaseHandle handle = new TextLabel(\"Hello World!\"); " +
- "TextLabel label = handle as TextLabel")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new static TextLabel DownCast(BaseHandle handle)
- {
- TextLabel ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextLabel;
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// The TranslatableText property.<br />
/// The text can set the SID value.<br />
/// </summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Downcasts a handle to view handle.<br />
- /// If handle points to a view, the downcast produces a valid handle.<br />
- /// If not, the returned handle is left uninitialized.<br />
- /// </summary>
- /// <param name="handle">A handle to an object.</param>
- /// <returns>A handle to a view or an uninitialized handle.</returns>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static View DownCast(BaseHandle handle)
- {
- View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static T DownCast<T>(View view) where T : View
- {
- T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
- if (ret != null)
- {
- return ret;
- }
- return null;
- }
-
private View ConvertIdToView(uint id)
{
View view = null;
}
/// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use AddedToWindow.
- [Obsolete("Please do not use! This will be deprecated! Please use AddedToWindow instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler OnWindowEvent
- {
- add
- {
- if (_onWindowEventHandler == null)
- {
- _onWindowEventCallback = OnWindow;
- this.OnWindowSignal().Connect(_onWindowEventCallback);
- }
-
- _onWindowEventHandler += value;
- }
-
- remove
- {
- _onWindowEventHandler -= value;
-
- if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
- {
- this.OnWindowSignal().Disconnect(_onWindowEventCallback);
- }
- }
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use RemovedFromWindow.
- [Obsolete("Please do not use! This will be deprecated! Please use RemovedFromWindow instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler OffWindowEvent
- {
- add
- {
- if (_offWindowEventHandler == null)
- {
- _offWindowEventCallback = OffWindow;
- this.OffWindowSignal().Connect(_offWindowEventCallback);
- }
-
- _offWindowEventHandler += value;
- }
-
- remove
- {
- _offWindowEventHandler -= value;
-
- if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
- {
- this.OffWindowSignal().Disconnect(_offWindowEventCallback);
- }
- }
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use Relayout.
- [Obsolete("Please do not use! This will be deprecated! Please use Relayout instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler OnRelayoutEvent
- {
- add
- {
- if (_onRelayoutEventHandler == null)
- {
- _onRelayoutEventCallback = OnRelayout;
- this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
- }
-
- _onRelayoutEventHandler += value;
- }
-
- remove
- {
- _onRelayoutEventHandler -= value;
-
- if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
- {
- this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
- }
-
- }
- }
-
- /// <summary>
/// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
/// </summary>
/// <since_tizen> 3 </since_tizen>
KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
}
- if (_imfManagerLanguageChangedEventCallback != null)
- {
- LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
- }
-
- if (_imfManagerResizedEventCallback != null)
- {
- ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
- }
-
- if (_imfManagerStatusChangedEventCallback != null)
- {
- StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
- }
-
- if (_imfManagerEventReceivedEventCallback != null)
- {
- EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
- }
-
- if (_imfManagerActivatedEventCallback != null)
- {
- ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
- }
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
/// <summary>
/// The pre-edit or the commit string.
/// </summary>
- /// /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PredictiveString instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string predictiveString
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The pre-edit or the commit string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public string PredictiveString
{
/// <summary>
/// The name of the event from the IMF.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventName instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ImfManager.ImfEvent eventName
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The name of the event from the IMF.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public ImfManager.ImfEvent EventName
{
/// <summary>
/// The start position from the current cursor position to start deleting characters.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CursorOffset instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int cursorOffset
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The start position from the current cursor position to start deleting characters.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int CursorOffset
{
/// <summary>
/// The number of characters to delete from the cursorOffset.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use NumberOfChars instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int numberOfChars
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The number of characters to delete from the cursorOffset.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int NumberOfChars
{
/// <summary>
/// The current text string.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CurrentText instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string currentText
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The current text string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public string CurrentText
{
/// <summary>
/// The current text string.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CursorPosition instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int cursorPosition
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The current text string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int CursorPosition
{
/// <summary>
/// If the cursor position needs to be updated.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Update instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool update
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// If the cursor position needs to be updated.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public bool Update
{
/// <summary>
/// Flags if preedit reset is required.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PreeditResetRequired instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool preeditResetRequired
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// Flags if preedit reset is required.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public bool PreeditResetRequired
{
/// <summary>
/// ImfManager activated event arguments.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use ActivatedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerActivatedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
- private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
- private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
-
- /// <summary>
- /// ImfManager activated event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Activated instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
- {
- add
- {
- if (_imfManagerActivatedEventHandler == null)
- {
- _imfManagerActivatedEventCallback = OnImfManagerActivated;
- ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
- }
-
- _imfManagerActivatedEventHandler += value;
- }
- remove
- {
- _imfManagerActivatedEventHandler -= value;
-
- if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
- {
- ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
- }
- }
- }
-
- private void OnImfManagerActivated(global::System.IntPtr data)
- {
- ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerActivatedEventHandler != null)
- {
- _imfManagerActivatedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager activated event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class ActivatedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager activated signal.
- /// </summary>
- /// Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ActivatedSignalType ActivatedSignal()
+ internal ActivatedSignalType ActivatedSignal()
{
ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// ImfManager event received event arguments.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventReceivedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerEventReceivedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
- private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
- private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
-
- /// <summary>
- /// ImfManager event received.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventReceived instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
- {
- add
- {
- if (_imfManagerEventReceivedEventHandler == null)
- {
- _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
- EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
- }
-
- _imfManagerEventReceivedEventHandler += value;
- }
- remove
- {
- _imfManagerEventReceivedEventHandler -= value;
-
- if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
- {
- EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
- }
- }
- }
-
- private void OnImfManagerEventReceived(global::System.IntPtr data)
- {
- ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerEventReceivedEventHandler != null)
- {
- _imfManagerEventReceivedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager event received event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class EventReceivedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager event received signal.
- /// </summary>
- /// Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ImfEventSignalType EventReceivedSignal()
+ internal ImfEventSignalType EventReceivedSignal()
{
ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// ImfManager status changed event arguments.
/// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use StatusChangedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerStatusChangedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
- private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
- private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
-
- /// <summary>
- /// ImfManager status changed.
- /// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use StatusChanged instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
- {
- add
- {
- if (_imfManagerStatusChangedEventHandler == null)
- {
- _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
- StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
- }
-
- _imfManagerStatusChangedEventHandler += value;
- }
- remove
- {
- _imfManagerStatusChangedEventHandler -= value;
-
- if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
- {
- StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
- }
- }
- }
-
- private void OnImfManagerStatusChanged(global::System.IntPtr data)
- {
- ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerStatusChangedEventHandler != null)
- {
- _imfManagerStatusChangedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager status changed event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class StatusChangedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager status changed signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public StatusSignalType StatusChangedSignal()
+ internal StatusSignalType StatusChangedSignal()
{
StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// ImfManager resized event arguments.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use ResizedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerResizedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerResizedEventCallbackType(IntPtr data);
- private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
- private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
-
- /// <summary>
- /// ImfManager resized event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Resized instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
- {
- add
- {
- if (_imfManagerResizedEventHandler == null)
- {
- _imfManagerResizedEventCallback = OnImfManagerResized;
- ResizedSignal().Connect(_imfManagerResizedEventCallback);
- }
-
- _imfManagerResizedEventHandler += value;
- }
- remove
- {
- _imfManagerResizedEventHandler -= value;
-
- if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
- {
- ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
- }
- }
- }
-
- private void OnImfManagerResized(IntPtr data)
- {
- ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerResizedEventHandler != null)
- {
- _imfManagerResizedEventHandler(this, e);
- }
- }
-
- /// <summary>
/// ImfManager resized event.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
}
- /// <summary>
- /// ImfManager resized signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public KeyboardResizedSignalType ResizedSignal()
+ internal KeyboardResizedSignalType ResizedSignal()
{
KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// ImfManager language changed event arguments.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use LanguageChangedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerLanguageChangedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerLanguageChangedEventCallbackType(IntPtr data);
- private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
- private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
-
- /// <summary>
- /// ImfManager language changed event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use LanguageChanged instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
- {
- add
- {
- if (_imfManagerLanguageChangedEventHandler == null)
- {
- _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
- LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
- }
-
- _imfManagerLanguageChangedEventHandler += value;
- }
- remove
- {
- _imfManagerLanguageChangedEventHandler -= value;
-
- if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
- {
- LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
- }
- }
- }
-
- private void OnImfManagerLanguageChanged(IntPtr data)
- {
- ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerLanguageChangedEventHandler != null)
- {
- _imfManagerLanguageChangedEventHandler(this, e);
- }
- }
-
- /// <summary>
/// ImfManager language changed event args.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
}
- /// <summary>
- /// ImfManager language changed signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public LanguageChangedSignalType LanguageChangedSignal()
+ internal LanguageChangedSignalType LanguageChangedSignal()
{
LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
// Dali's default layer is default center origin. need to change as top left.
// NUI's Layer is like a transparent film which covers entire window. (Layer is not an actor of Dali)
// otherwise, this makes ScreenPosition as wrong value.
- Layer defaultLayer = Window.GetDefaultLayer();
+ Layer defaultLayer = Window.Instance.GetDefaultLayer();
defaultLayer.SetParentOrigin(Tizen.NUI.ParentOrigin.TopLeft);
defaultLayer.SetAnchorPoint(Tizen.NUI.PivotPoint.TopLeft);
}
resourceManager = value;
}
}
-
- /// <summary>
- /// Gets the window instance.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Window Window
- {
- get
- {
- return Window.Instance;
- }
- }
}
}
return new Position(vec.X, vec.Y, vec.Z);
}
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use PivotPointTopRight.
- [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.TopRight instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static Position AnchorPointTopRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use PivotPointCenterLeft.
- [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.CenterLeft instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static Position AnchorPointCenterLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use PivotPointBottomRight.
- [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.BottomRight instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static Position AnchorPointBottomRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
}
}
\ No newline at end of file
/// <summary>
/// Enumeration of transfer direction for Endpoints.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public enum EndpointDirection
{
/// <summary>
/// <summary>
/// Event arguments for Hot Plugged event for USB devices.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class HotPluggedEventArgs : EventArgs
{
internal HotPluggedEventArgs(UsbDevice device, HotplugEventType type)
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbDevice Device { get; }
/// <summary>
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public HotplugEventType EventType { get; }
}
}
/// <summary>
/// Enumeration of hot plugged event type for USB devices.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public enum HotplugEventType
{
/// <summary>
/// <summary>
/// Enumeration of isochronous endpoint's synchronization type.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public enum SynchronizationType
{
/// <summary>
/// <summary>
/// Enumeration of an endpoint's usage type.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public enum UsageType
{
/// <summary>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected or not opened for operation.</exception>
/// <exception cref="TimeoutException">Throws exception if transfer timed-out.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Transfer(byte[] buffer, int length, uint timeout)
{
return TransferImpl(buffer, length, timeout);
/// <summary>
/// Class to manage USB Configuration.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbConfiguration : IDisposable
{
internal readonly Interop.UsbConfigHandle _handle;
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public bool IsSelfPowered
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public bool SupportRemoteWakeup
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int MaximumPowerRequired
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public IReadOnlyDictionary<int, UsbInterface> Interfaces
{
get
/// <exception cref="InvalidOperationException">
/// Throws exception if device is disconnected or not opened for operation or busy as its interfaces are currently claimed.
/// </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public string ConfigurationString
{
get
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException"> Throws exception if device is disconnected or not opened for operation. </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void SetAsActive()
{
ThrowIfDisposed();
/// <summary>
/// Releases all resources used by the ConnectionProfile.
/// It should be called after finished using of the object.</summary>
- /// <since_tizen> 4 </since_tizen>
- protected virtual void Dispose(bool disposing)
+ /// <since_tizen> 5 </since_tizen>
+ internal virtual void Dispose(bool disposing)
{
if (!disposedValue)
{
/// <summary>
/// Finalizes an instance of the UsbConfiguration class.
/// </summary>
+ /// <since_tizen> 5 </since_tizen>
~UsbConfiguration()
{
Dispose(false);
/// <summary>
/// Releases all resources used by the ConnectionProfile.
/// It should be called after finished using of the object.</summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Dispose()
{
Dispose(true);
}
#endregion
}
-}
\ No newline at end of file
+}
/// <summary>
/// USB Control Endpoint class.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbControlEndpoint : UsbEndpoint
{
private readonly UsbDevice _device;
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5</since_tizen>
public new int Id
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public new EndpointDirection Direction
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public new int MaxPacketSize
{
get
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected or not opened for operation.</exception>
/// <exception cref="TimeoutException">Throws exception if transfer timed-out.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Transfer(byte requestType, byte request, ushort value, ushort index, byte[] data, ushort length, uint timeout)
{
_device.ThrowIfDisposed();
/// <summary>
/// Class to manage USB host devices. This class contains operations for enumerating, opening and closing devices.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbDevice : IDisposable
{
internal readonly Interop.HostDeviceHandle _handle;
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Throws exception if user has insufficient permission on device.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int BusId {
get
{
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Address
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public IEnumerable<int> Ports
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public bool IsOpened
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbControlEndpoint ControlEndpoint
{
get
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected or not opened for operation. </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbConfiguration ActiveConfiguration
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public IReadOnlyDictionary<int, UsbConfiguration> Configurations
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbDeviceInformation DeviceInformation
{
get
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException"> Throws exception if device is disconnected or not opened for operation. </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbDeviceStrings Strings
{
get
/// <exception cref="OutOfMemoryException">Throws exception in case of insufficient memory.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected.</exception>
/// <exception cref="UnauthorizedAccessException">Throws exception if user has insufficient permission on device.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Open()
{
ThrowIfDisposed();
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Close()
{
ThrowIfDisposed();
/// <summary>
/// Releases all resources used by the ConnectionProfile.
/// It should be called after finished using of the object.</summary>
- /// <since_tizen> 4 </since_tizen>
- protected virtual void Dispose(bool disposing)
+ /// <since_tizen> 5 </since_tizen>
+ internal virtual void Dispose(bool disposing)
{
if (!disposedValue)
{
/// <summary>
/// Releases all resources used by the ConnectionProfile.
/// It should be called after finished using of the object.</summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Device information for USB device.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbDeviceInformation
{
private readonly UsbDevice _device;
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="UnauthorizedAccessException">Throws exception if user has insufficient permission on device.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int UsbVersion
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Class
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Subclass
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Protocol
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int VendorId
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int ProductId
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int DeviceVersion
{
get
/// <summary>
/// String information for USB device.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbDeviceStrings
{
private readonly UsbDevice _device;
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public string Manufacturer
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public string Product
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public string Serial
{
get
/// <summary>
/// USB Endpoint class.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbEndpoint
{
internal readonly Interop.UsbEndpointHandle _handle;
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Id
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public EndpointDirection Direction
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int MaxPacketSize
{
get
/// <summary>
/// Class to manage USB Interfaces.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbInterface
{
internal readonly Interop.UsbInterfaceHandle _handle;
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Id
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int AlternateSetting
{
set
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public IReadOnlyDictionary<int, UsbEndpoint> Endpoints
{
get
/// <exception cref="InvalidOperationException">
/// Throws exception if device is disconnected or not opened for operation.
/// </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public string InterfaceString
{
get
/// <exception cref="InvalidOperationException">
/// Throws exception if device is disconnected or not opened for operation or another program or driver has claimed the interface.
/// </exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Claim(bool force)
{
ThrowIfDisposed();
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected or not opened for operation.</exception>
/// <exception cref="UnauthorizedAccessException">Throws exception if user has insufficient permission on device.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Release()
{
ThrowIfDisposed();
/// <summary>
/// USB Interrupt Endpoint class.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbInterruptEndpoint : UsbEndpoint
{
internal UsbInterruptEndpoint(UsbInterface parent, Interop.UsbEndpointHandle handle) : base(parent, handle)
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int PollingInterval
{
get
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="InvalidOperationException">Throws exception if device is disconnected or not opened for operation.</exception>
/// <exception cref="TimeoutException">Throws exception if transfer timed-out.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public int Transfer(byte[] buffer, int length, uint timeout)
{
return TransferImpl(buffer, length, timeout);
/// <summary>
/// USB Isochronous Endpoint class.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbIsochronousEndpoint : UsbEndpoint
{
internal UsbIsochronousEndpoint(UsbInterface parent, Interop.UsbEndpointHandle handle) : base(parent, handle)
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public SynchronizationType SynchronizationType
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsageType UsageType
{
get
/// <summary>
/// USB Manager class.
/// </summary>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public class UsbManager : IDisposable
{
// It needs to be static as its destroy function must be called after closing all devices and before application close.
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public UsbManager()
{
if (_context == null) throw new NotSupportedException("USB host operations are not supported in this device");
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
/// <exception cref="OutOfMemoryException">Throws exception in case of insufficient memory.</exception>
/// <exception cref="UnauthorizedAccessException">Throws exception if user has insufficient permission on device.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public IEnumerable<UsbDevice> AvailableDevices
{
get
/// </summary>
/// <feature>http://tizen.org/feature/usb.host</feature>
/// <exception cref="NotSupportedException">The required feature is not supported.</exception>
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public event EventHandler<HotPluggedEventArgs> DeviceHotPlugged;
internal void HostHotplugAttachCallback(IntPtr devHandle, IntPtr userData)
/// <summary>
/// Finalizes an instance of the USB Manager Class.
/// </summary>
+ /// <since_tizen> 5 </since_tizen>
~UsbManager()
{
Dispose(false);
}
- /// <since_tizen> 4 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Dispose()
{
Dispose(true);