Exemplo n.º 1
0
 internal TTSPlayer(TTSPlayer handle) : this(Interop.TtsPlayer.new_TtsPlayer__SWIG_1(TTSPlayer.getCPtr(handle)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
        internal TTSPlayer Assign(TTSPlayer rhs)
        {
            TTSPlayer ret = new TTSPlayer(Interop.TtsPlayer.TtsPlayer_Assign(swigCPtr, TTSPlayer.getCPtr(rhs)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Gets the singleton of the TTS player for the default mode.
        /// </summary>
        /// <returns> A handle of the TTS player for the default mode.</returns>
        /// <since_tizen> 3 </since_tizen>
        public static TTSPlayer Get()
        {
            TTSPlayer ret = new TTSPlayer(Interop.TtsPlayer.TtsPlayer_Get__SWIG_1(), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Gets the singleton of the TTS player for the given mode.
        /// </summary>
        /// <param name="mode"> The mode of TTS player.</param>
        /// <returns> A handle of the TTS player for the given mode.</returns>
        /// <since_tizen> 3 </since_tizen>
        public static TTSPlayer Get(TTSMode mode)
        {
            TTSPlayer ret = new TTSPlayer(NDalicManualPINVOKE.TtsPlayer_Get__SWIG_0((int)mode), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Gets the singleton of the TTS player for the given mode.
        /// </summary>
        /// <param name="mode"> The mode of TTS player.</param>
        /// <returns> A handle of the TTS player for the given mode.</returns>
        /// <since_tizen> 3 </since_tizen>
        public static TTSPlayer Get(TTSMode mode)
        {
            TTSPlayer ret = new TTSPlayer(Interop.TtsPlayer.Get((int)mode), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TTSPlayer obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }