コード例 #1
0
        /// <summary>
        /// Get the current adapter state
        /// </summary>
        /// <param name="state">Current Adapter State of the device</param>
        /// <returns>MLResultCode.Ok on success, or failure</returns>
        public static MLResult GetAdapterState(out AdapterState state)
        {
            // Provide a default value
            state = AdapterState.Off;

            return(MLResult.Create(NativeBindings.MLBluetoothAdapterGetState(ref state)));
        }