Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tizen.System.Device] Add battery power source property #6461

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

germonado
Copy link

Description of Change

To support using device_battery_get_power_source(), this battery powersource property addition is necessary. Below enum and property are added.

  • public enum BatteryPowerSource
    -> It represents the battery power source charger type.
  • BatteryPowerSource Battery.PowerSource { get; } // Property
    -> It is possible to get the battery power source type as the BatteryPowerSource enum value.

To support using device_battery_get_power_source(),
this battery powersource property addition is necessary.
Below enum and property is added.

 - public enum BatteryPowerSource
	-> It represents battery power source charger type.
 - public static BatteryPowerSource PowerSource
	-> It is possible to get battery power source type as BatteryPowerSource enum value.

Signed-off-by: Yunhee Seo <[email protected]>
@github-actions github-actions bot added the API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0 label Nov 19, 2024
@TizenAPI-Bot
Copy link
Collaborator

Public API Changed

Please follow the ACR process for the changed API below.

Added: 6, Removed: 0, Changed: 0

Added

+ /// <since_tizen>12</since_tizen
+ Tizen.System.BatteryPowerSource Tizen.System.Battery::PowerSource()

+ /// <since_tizen>12</since_tizen
+ Tizen.System.BatteryPowerSource

+ /// <since_tizen>12</since_tizen
+ static Tizen.System.BatteryPowerSource Tizen.System.BatteryPowerSource::Ac

+ /// <since_tizen>12</since_tizen
+ static Tizen.System.BatteryPowerSource Tizen.System.BatteryPowerSource::None

+ /// <since_tizen>12</since_tizen
+ static Tizen.System.BatteryPowerSource Tizen.System.BatteryPowerSource::Usb

+ /// <since_tizen>12</since_tizen
+ static Tizen.System.BatteryPowerSource Tizen.System.BatteryPowerSource::Wireless

@germonado
Copy link
Author

This API is not new, this is only a wrapper of the public native API.

@chanwoochoi chanwoochoi merged commit 8f4beb0 into Samsung:master Nov 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACR Required API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants