From: Kichan Kwon Date: Fri, 8 Sep 2017 02:27:23 +0000 (+0900) Subject: [Information] Add comment about monitoring event X-Git-Tag: GitHub/PR#40/tizen-studio~32^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39a09ccea106ad9821dd13af7ef4019ade870556;p=sdk%2Fonline-doc.git [Information] Add comment about monitoring event PS2: Reviewed PS3: Fixed the comment style to adhere to the .NET style guide Change-Id: I727d00e0137ef93329afb61bf77fbf5c60c7f9ca Signed-off-by: Kichan Kwon --- diff --git a/org.tizen.guides/html/dotnet/information.htm b/org.tizen.guides/html/dotnet/information.htm index 6166b2f..64d89a7 100644 --- a/org.tizen.guides/html/dotnet/information.htm +++ b/org.tizen.guides/html/dotnet/information.htm @@ -186,11 +186,13 @@ public static void TurnDownTheVolumeCallback(object sender, RuntimeKeyStatusChan } } +/// To begin monitoring, register the callback for the AudioJackConnectorChanged event public static void init() { RuntimeInformation.AudioJackConnectorChanged += TurnDownTheVolumeCallback; } +/// When monitoring is no longer needed, deregister the callback public static void deinit() { RuntimeInformation.AudioJackConnectorChanged -= TurnDownTheVolumeCallback;