Ejemplo n.º 1
0
        /// <summary>
        /// Sets LCD state for the device display.
        /// </summary>
        /// <since_tizen> 4 </since_tizen>
        /// <param name="state">LCD state to be set.</param>
        /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation.</exception>
        public static void SetLcdState(LcdControlState state)
        {
            int ret = Interop.CallManager.SetLcdState(state);

            if (ret != (int)CmError.None)
            {
                Log.Error(CmUtility.LogTag, "Failed to set LCD state, Error: " + (CmError)ret);
                CmUtility.ThrowCmException(ret);
            }
        }
Ejemplo n.º 2
0
 internal static extern int SetLcdState(LcdControlState state);