From 645db6331431fc3db9714b79e7e0cf377f566730 Mon Sep 17 00:00:00 2001 From: hjhun <36876573+hjhun@users.noreply.github.com> Date: Fri, 27 Sep 2024 14:16:15 +0900 Subject: [PATCH] [System.MediaKey] Enhance API descriptions (#6377) Signed-off-by: Hwankyu Jhun --- .../Tizen.System/MediaKey.cs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Tizen.System.MediaKey/Tizen.System/MediaKey.cs b/src/Tizen.System.MediaKey/Tizen.System/MediaKey.cs index 86df6f1db..099ca161a 100755 --- a/src/Tizen.System.MediaKey/Tizen.System/MediaKey.cs +++ b/src/Tizen.System.MediaKey/Tizen.System/MediaKey.cs @@ -19,8 +19,12 @@ using System; namespace Tizen.System { /// - /// The class for event arguments of the media key. + /// Event arguments class for handling media key events. /// + /// + /// This class provides properties that contain information about the media key event, such as the key value and key status. + /// By implementing handlers for the appropriate events, you can respond to user interactions with media keys on supported devices. + /// /// 3 public class MediaKeyEventArgs : EventArgs { @@ -117,8 +121,12 @@ namespace Tizen.System } /// - /// The class for receiving events of media keys. + /// A class that provides methods for handling media key events. /// + /// + /// This class enables developers to receive and handle events triggered by various media keys such as play/pause, volume up/down, etc. + /// By implementing the appropriate event handlers, applications can respond accordingly to user input from these keys. + /// /// 3 public static class MediaKey { @@ -137,8 +145,13 @@ namespace Tizen.System /// /// Adds or removes events for all media keys. /// - /// 3 + /// + /// By subscribing to this event, you can receive notifications about user interactions with media keys such as play/pause, volume up/down, etc. + /// To handle these events, you need to provide a callback function that implements the EventHandler<MediaKeyEventArgs> delegate. + /// In case of failure while reserving or releasing the key, an InvalidOperationException will be thrown. + /// /// Failed to reserve or release the key. + /// 3 public static event EventHandler Event { add -- 2.34.1