@@ -37,9 +37,22 @@ public class AuthenticationListener: IAuthInterfaceEventListener, IConnectInterf
3737 /// <summary>
3838 /// Identifies the kind of authentication change.
3939 /// </summary>
40- public enum AuthenticationLevelChangeType
40+ public enum LoginChangeKind
4141 {
42+ /// <summary>
43+ /// Represents a login change relating to the Auth-login type with EOS.
44+ /// A user logged in with the Auth Interface has access to Epic
45+ /// Account Services (EAS) operations.
46+ /// </summary>
4247 Auth ,
48+
49+ /// <summary>
50+ /// Represents a login change relating to the Connect-login type with EOS.
51+ /// A user logged in with the Connect Interface has access to all
52+ /// EOS Game Services.
53+ /// Typically a user will be logged in to Auth and then afterwards
54+ /// logged in to Connect.
55+ /// </summary>
4356 Connect
4457 }
4558
@@ -51,7 +64,7 @@ public enum AuthenticationLevelChangeType
5164 /// True if the authentication state has changed to authenticated, False
5265 /// otherwise.
5366 /// </param>
54- public delegate void AuthenticationChangedEventHandler ( bool authenticated , AuthenticationLevelChangeType changeType ) ;
67+ public delegate void AuthenticationChangedEventHandler ( bool authenticated , LoginChangeKind changeType ) ;
5568
5669 /// <summary>
5770 /// Event that triggers when the state of authentication has changed.
@@ -114,7 +127,7 @@ public bool IsAuthenticated
114127 /// <param name="attemptedState"></param>
115128 /// <param name="attemptResult"></param>
116129 /// <param name="changeType">The type of authentication change.</param>
117- private void TriggerAuthenticationChangedEvent ( bool attemptedState , Result attemptResult , AuthenticationLevelChangeType changeType )
130+ private void TriggerAuthenticationChangedEvent ( bool attemptedState , Result attemptResult , LoginChangeKind changeType )
118131 {
119132 // If the attempt to change the state of authentication did not
120133 // succeed, then log a warning and stop.
@@ -140,7 +153,7 @@ private void TriggerAuthenticationChangedEvent(bool attemptedState, Result attem
140153 /// </param>
141154 public void OnAuthLogin ( LoginCallbackInfo loginCallbackInfo )
142155 {
143- TriggerAuthenticationChangedEvent ( true , loginCallbackInfo . ResultCode , AuthenticationLevelChangeType . Auth ) ;
156+ TriggerAuthenticationChangedEvent ( true , loginCallbackInfo . ResultCode , LoginChangeKind . Auth ) ;
144157 }
145158
146159 /// <summary>
@@ -151,7 +164,7 @@ public void OnAuthLogin(LoginCallbackInfo loginCallbackInfo)
151164 /// </param>
152165 public void OnAuthLogout ( LogoutCallbackInfo logoutCallbackInfo )
153166 {
154- TriggerAuthenticationChangedEvent ( false , logoutCallbackInfo . ResultCode , AuthenticationLevelChangeType . Auth ) ;
167+ TriggerAuthenticationChangedEvent ( false , logoutCallbackInfo . ResultCode , LoginChangeKind . Auth ) ;
155168 }
156169
157170 /// <summary>
@@ -162,7 +175,7 @@ public void OnAuthLogout(LogoutCallbackInfo logoutCallbackInfo)
162175 /// </param>
163176 public void OnConnectLogin ( Epic . OnlineServices . Connect . LoginCallbackInfo loginCallbackInfo )
164177 {
165- TriggerAuthenticationChangedEvent ( true , loginCallbackInfo . ResultCode , AuthenticationLevelChangeType . Connect ) ;
178+ TriggerAuthenticationChangedEvent ( true , loginCallbackInfo . ResultCode , LoginChangeKind . Connect ) ;
166179 }
167180
168181 /// <summary>
0 commit comments