// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) 2023 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%
namespace UnityEngine.XR.MagicLeap
{
public partial class MLPowerManager
{
///
/// Represents the different components which can be accessed/controlled using the Power Manager.
///
public enum Component
{
///
/// Invalid or no component.
///
None,
///
/// Controller.
///
Controller
}
///
/// Power Manager error codes.
///
public enum Error
{
///
/// Controller component could not be connected due to Invalid SKU.
///
InvalidSKU
}
///
/// Power states.
///
public enum PowerState
{
///
/// Invalid or no power state.
///
None,
///
/// Normal mode, this is the default or active state of the component.
///
Normal,
///
/// Charging only mode. When charging component it cannot be used.
///
DisabledWhileCharging,
///
/// Standby mode.
///
Standby,
///
/// Sleep mode.
///
Sleep
}
///
/// Power Manager charging states.
///
public enum ChargingState
{
///
/// Not charging.
///
NotCharging,
///
/// Charging normally.
///
ChargingNormally
}
///
/// Connection state of the component.
///
public enum ConnectionState
{
///
/// Component is connected.
///
Connected,
///
/// Component is disconnected.
///
Disconnected
}
///
/// Battery info/warning codes.
///
public enum BatteryInfo
{
///
/// No issues reported.
///
OK,
///
/// Charge the component soon.
///
BatteryLow,
///
/// Charge the component immediately.
///
BatteryCritical
}
///
/// Power Manager property types.
///
public enum PropertyType
{
///
/// Extra info about battery, as represented by MLPowerManagerBatteryInfo.
///
BatteryInfo,
///
/// Battery level. Range is between 0 and 100.
///
BatteryLevel,
///
/// Charging state.
///
ChargingState,
///
/// Connection state.
///
ConnectionState
}
}
}