Get Current User¶
An iOS application can retrieve an instance of BackendlessUser
representing the currently logged in user using the read-only property currentUser
:
BackendlessUser *currentUser = [Backendless.shared.userService getCurrentUser];
let currentUser = Backendless.shared.userService.getCurrentUser()
If a user is not logged in, the method returns nil
.