/// <summary> /// Ends ongoing call. /// </summary> /// <param name="id">ID of the call which is to be ended.</param> /// <param name="type">Call release type.</param> /// <privlevel>platform</privlevel> /// <privilege>http://developer.samsung.com/tizen/privilege/call.admin</privilege> /// <exception cref="UnauthorizedAccessException">Thrown when privilege access is denied.</exception> /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation.</exception> public void EndCall(uint id, CallReleaseType type) { int ret = Interop.CallManager.EndCall(_handle, id, type); if (ret != (int)CmError.None) { Log.Error(CmUtility.LogTag, "Failed to end call, Error: " + (CmError)ret); CmUtility.ThrowCmException(ret, _handle, "http://developer.samsung.com/tizen/privilege/call.admin"); } }
internal static extern int EndCall(IntPtr handle, uint callId, CallReleaseType releaseType);