diff --git a/src/Tizen.System.Session/Session/Session.cs b/src/Tizen.System.Session/Session/Session.cs index cf09d03628b..ead4424b190 100644 --- a/src/Tizen.System.Session/Session/Session.cs +++ b/src/Tizen.System.Session/Session/Session.cs @@ -28,7 +28,7 @@ namespace Tizen.System /// /// Provides methods to manage subsession users. Allows to register for events triggered by operations on subsession users. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public sealed class Session { /// @@ -40,13 +40,13 @@ public sealed class Session /// /// Maximum length of any given user ID. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public const int MaxUserLength = 20; /// /// Special subsession ID, which is always present and does not represent any user. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public const string EmptyUser = ""; private static ConcurrentDictionary s_sessionInstances = new ConcurrentDictionary(); @@ -77,7 +77,7 @@ private Session(int sessionUID) /// /// To ensure thread safety, explicit creation of Session object is not allowed. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public static Session GetInstance(int sessionUID) { if (!s_sessionInstances.ContainsKey(sessionUID)) @@ -88,7 +88,7 @@ public static Session GetInstance(int sessionUID) /// /// Gets session UID of this session object. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public int SessionUID { get; private set; } /// @@ -107,7 +107,8 @@ public static Session GetInstance(int sessionUID) /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// A read-only list of all subsession IDs for this session. + /// 10.1 public IReadOnlyList GetUsers() { @@ -137,7 +138,8 @@ public IReadOnlyList GetUsers() /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// The currently active subsession user ID, or "" (EmptyUser) when no subsession is enabled. + /// 10.1 public string GetCurrentUser() { StringBuilder user = new StringBuilder(MaxUserLength); @@ -286,13 +288,13 @@ public Task SubsessionSwitchUserAsync(string userName) /// Event argument of the event (obtained from said event) /// /// This method is assumed to be called from an event handler. You can only mark an event as completed - /// if you registered for in in the same process. + /// if you registered for it in the same process. /// /// Session UID of this object is invalid /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public void SubsessionEventMarkAsDone(SubsessionEventArgs subsessionEventArgs) { SessionError ret = Interop.Session.SubsessionEventWaitDone(subsessionEventArgs.SessionInfo); @@ -318,7 +320,7 @@ private void OnAddUserWait(SubsessionEventInfoNative infoNative, IntPtr data) /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public event EventHandler AddUserWait { add @@ -360,7 +362,7 @@ private void OnRemoveUserWait(SubsessionEventInfoNative infoNative, IntPtr data) /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public event EventHandler RemoveUserWait { add @@ -402,7 +404,7 @@ private void OnSwitchUserWait(SubsessionEventInfoNative infoNative, IntPtr data) /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public event EventHandler SwitchUserWait { add @@ -444,7 +446,7 @@ private void OnSwitchUserCompletion(SubsessionEventInfoNative infoNative, IntPtr /// Internal error /// Not permitted /// Not supported - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public event EventHandler SwitchUserCompleted { add diff --git a/src/Tizen.System.Session/Session/SessionEventArgs.cs b/src/Tizen.System.Session/Session/SessionEventArgs.cs index 57333b78991..291f60f8c58 100644 --- a/src/Tizen.System.Session/Session/SessionEventArgs.cs +++ b/src/Tizen.System.Session/Session/SessionEventArgs.cs @@ -28,13 +28,13 @@ namespace Tizen.System /// You can check the event type that was invoked by checking a type of event arguments /// during runtime - they all derive from this base class. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public abstract class SubsessionEventArgs : EventArgs { /// /// Session UID of the session invoking the event /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public int SessionUID { get; internal set; } internal SubsessionEventInfoNative SessionInfo { get; set; } @@ -50,13 +50,13 @@ internal SubsessionEventArgs(SubsessionEventInfoNative eventInfo) /// /// An event argument type for AddUserWait event type /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public class AddUserEventArgs : SubsessionEventArgs { /// /// Added subsession user ID - /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// 10.1 public string UserName { get; internal set; } internal AddUserEventArgs(SubsessionEventInfoNative eventInfo) @@ -75,13 +75,13 @@ internal AddUserEventArgs(SubsessionEventInfoNative eventInfo) /// /// An event argument type for RemoveUserWait event type /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public class RemoveUserEventArgs : SubsessionEventArgs { /// /// Removed subsession user ID - /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// 10.1 public string UserName { get; internal set; } internal RemoveUserEventArgs(SubsessionEventInfoNative eventInfo) @@ -99,25 +99,25 @@ internal RemoveUserEventArgs(SubsessionEventInfoNative eventInfo) /// /// A generic base class for Switch event types /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public abstract class SwitchUserEventArgs : SubsessionEventArgs { /// /// ID of this switch operation - /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// 10.1 public long SwitchID { get; internal set; } /// /// Active subsession user ID before this switch operation - /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// 10.1 public string UserNamePrev { get; internal set; } /// /// Active subsession ID after this switch operation - /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// + /// 10.1 public string UserNameNext { get; internal set; } internal SwitchUserEventArgs(SubsessionEventInfoNative eventInfo) @@ -141,7 +141,7 @@ internal SwitchUserEventArgs(SubsessionEventInfoNative eventInfo) /// /// An event argument type for SwitchUserWait event type /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public class SwitchUserWaitEventArgs : SwitchUserEventArgs { internal SwitchUserWaitEventArgs(SubsessionEventInfoNative eventInfo) : base(eventInfo) { } @@ -150,7 +150,7 @@ internal SwitchUserWaitEventArgs(SubsessionEventInfoNative eventInfo) : base(eve /// /// An event argument type for SwitchUserCompleted event type /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 10.1 public class SwitchUserCompletionEventArgs : SwitchUserEventArgs { internal SwitchUserCompletionEventArgs(SubsessionEventInfoNative eventInfo) : base(eventInfo) { }