- BatteryChangingStateChangedEventArgs, change the property name from Changing to IsCharging
- Use Color class insted of using unsigned int type of color
Change-Id: Id6b9e3afae7e8bd628a435377444e7d52732690f
Signed-off-by: Praveen Gattu <gattu.p@samsung.com>
bool val = (value.ToInt32() == 1);
BatteryChargingStateChangedEventArgs e = new BatteryChargingStateChangedEventArgs()
{
- Charging = val
+ IsCharging = val
};
s_chargingStateChanged?.Invoke(null, e);
return true;
/// <summary>
/// The charging state of the battery. Charging is of type boolean which indicates true/false based on currrent charging status.
/// </summary>
- public bool Charging { get; internal set; }
+ public bool IsCharging { get; internal set; }
}
// Display
using System;
-
+using Tizen.UI;
namespace Tizen.System
{
/// <summary>
/// The Color value
/// The first byte means opaque and the other 3 bytes are RGB values.
/// </param>
- public static void Play(int on, int off, uint color)
+ public static void Play(int on, int off, Color color)
{
//looks like only blink option is supported. So hard coded to default blink option.
- DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, color, 1);
+ DeviceError res = (DeviceError)Interop.Device.DeviceLedPlayCustom(on, off, Convert.ToUInt32(color.Argb), 1);
if (res != DeviceError.None)
{
throw DeviceExceptionFactory.CreateException(res, "failed to play Led.");
<Reference Include="Tizen">
<HintPath>..\..\tizen\Tizen\bin\Debug\Tizen.dll</HintPath>
</Reference>
+ <Reference Include="Tizen.UI">
+ <HintPath>..\..\uifw\Tizen.UI\bin\Debug\Tizen.UI.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Device\Battery.cs" />
# P/Invoke Dependencies
BuildRequires: pkgconfig(csapi-tizen)
+BuildRequires: pkgconfig(csapi-uifw)
BuildRequires: pkgconfig(capi-system-device)
BuildRequires: pkgconfig(capi-system-runtime-info)
BuildRequires: pkgconfig(capi-system-info)