Open 3D Engine LocalUser Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
LocalUser::LocalUserNotifications Class Reference

#include <LocalUserNotificationBus.h>

Inherits AZ::EBusTraits.

Public Member Functions

virtual void OnLocalUserSignedIn (AzFramework::LocalUserId localUserId)
 
virtual void OnLocalUserSignedOut (AzFramework::LocalUserId localUserId)
 
virtual void OnLocalUserIdAssignedToLocalPlayerSlot (AzFramework::LocalUserId localUserId, AZ::u32 newLocalPlayerSlot, AZ::u32 previousLocalPlayerSlot=LocalPlayerSlotNone)
 
virtual void OnLocalUserIdRemovedFromLocalPlayerSlot (AzFramework::LocalUserId localUserId, AZ::u32 localPlayerSlot)
 

Static Public Attributes

static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single
 EBus Trait: local user notifications are addressed to a single address.
 
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple
 EBus Trait: local user notifications can be handled by multiple listeners.
 

Detailed Description

EBus interface used to listen for notifications related to assignment of local user ids to local player slots in addition to notifications related to individual local user profiles.

Member Function Documentation

◆ OnLocalUserIdAssignedToLocalPlayerSlot()

virtual void LocalUser::LocalUserNotifications::OnLocalUserIdAssignedToLocalPlayerSlot ( AzFramework::LocalUserId  localUserId,
AZ::u32  newLocalPlayerSlot,
AZ::u32  previousLocalPlayerSlot = LocalPlayerSlotNone 
)
inlinevirtual

Override to be notified when a local user id is assigned to a local player slot

Parameters
[in]localUserIdThe local user id that was assigned to a local player slot.
[in]newLocalPlayerSlotThe local player slot that the local user id now occupies.
[in]previousLocalPlayerSlotThe local player slot that the local user id previously occupied, or LocalPlayerSlotNone.

◆ OnLocalUserIdRemovedFromLocalPlayerSlot()

virtual void LocalUser::LocalUserNotifications::OnLocalUserIdRemovedFromLocalPlayerSlot ( AzFramework::LocalUserId  localUserId,
AZ::u32  localPlayerSlot 
)
inlinevirtual

Override to be notified when a local user id is removed from a local player slot

Parameters
[in]localUserIdThe local user id that was removed from a local player slot.
[in]localPlayerSlotThe local player slot that the local user id was removed from.

◆ OnLocalUserSignedIn()

virtual void LocalUser::LocalUserNotifications::OnLocalUserSignedIn ( AzFramework::LocalUserId  localUserId)
inlinevirtual

Override to be notified when a local user signs into the system

Parameters
[in]localUserIdThe local user id that signed into the system

◆ OnLocalUserSignedOut()

virtual void LocalUser::LocalUserNotifications::OnLocalUserSignedOut ( AzFramework::LocalUserId  localUserId)
inlinevirtual

Override to be notified when a local user signs out of the system

Parameters
[in]localUserIdThe local user id that signed out of the system

The documentation for this class was generated from the following file: