2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using static Interop.VoiceControl;
20 namespace Tizen.Uix.VoiceControl
23 /// This class holds information related to the VoiceControl ErrorOccured Event
25 /// <since_tizen> 3 </since_tizen>
26 public class ErrorOccuredEventArgs
28 internal ErrorOccuredEventArgs(ErrorCode error)
34 ErrorValue = Error.None;
38 case ErrorCode.OutOfMemory:
40 ErrorValue = Error.OutOfMemory;
44 case ErrorCode.IoError:
46 ErrorValue = Error.IoError;
50 case ErrorCode.InvalidParameter:
52 ErrorValue = Error.InvalidParameter;
56 case ErrorCode.TimedOut:
58 ErrorValue = Error.TimedOut;
62 case ErrorCode.RecorderBusy:
64 ErrorValue = Error.RecorderBusy;
68 case ErrorCode.PermissionDenied:
70 ErrorValue = Error.PermissionDenied;
74 case ErrorCode.NotSupported:
76 ErrorValue = Error.NotSupported;
80 case ErrorCode.InvalidState:
82 ErrorValue = Error.InvalidState;
86 case ErrorCode.InvalidLanguage:
88 ErrorValue = Error.InvalidLanguage;
92 case ErrorCode.EngineNotFound:
94 ErrorValue = Error.EngineNotFound;
98 case ErrorCode.OperationFailed:
100 ErrorValue = Error.OperationFailed;
104 case ErrorCode.OperationRejected:
106 ErrorValue = Error.OperationRejected;
110 case ErrorCode.IterationEnd:
112 ErrorValue = Error.IterationEnd;
116 case ErrorCode.Empty:
118 ErrorValue = Error.Empty;
122 case ErrorCode.InProgressToReady:
124 ErrorValue = Error.InProgressToReady;
128 case ErrorCode.InProgressToRecording:
130 ErrorValue = Error.InProgressToRecording;
134 case ErrorCode.InProgressToProcessing:
136 ErrorValue = Error.InProgressToProcessing;
140 case ErrorCode.ServiceReset:
142 ErrorValue = Error.ServiceReset;
151 /// <since_tizen> 3 </since_tizen>
152 public Error ErrorValue