Class ToastManager
public sealed class ToastManager : IPlayerComponent, IDisposable
- Inheritance
-
ToastManager
- Implements
- Inherited Members
Properties
Channels
Overlapping toasts are split up into channels. Each channel can only show one toast at a time.
public ToastManager.ToastMessageChannel[] Channels { get; }
Property Value
HasToasts
public bool HasToasts { get; }
Property Value
Hold
Makes toasts wait until this is set to false before continuing.
public bool Hold { get; set; }
Property Value
Player
public WarfarePlayer Player { get; }
Property Value
ToastMessages
List of data for each ToastMessageStyle in use.
public static ToastMessageInfo[] ToastMessages { get; }
Property Value
Remarks
Use the integer value of the enum as index.
Methods
BlockChannelFor(int, float)
public void BlockChannelFor(int channel, float time)
Parameters
Queue(in ToastMessage)
public void Queue(in ToastMessage message)
Parameters
messageToastMessage
Remarks
Thread Safe
SkipExpiration(int)
public void SkipExpiration(int channel)
Parameters
channelint
Remarks
Thread Safe
SkipExpiration(ToastMessageStyle)
public void SkipExpiration(ToastMessageStyle style)
Parameters
styleToastMessageStyle
Remarks
Thread Safe
TryFindCurrentToastInfo(ToastMessageStyle, out ToastMessage)
public bool TryFindCurrentToastInfo(ToastMessageStyle style, out ToastMessage message)
Parameters
styleToastMessageStylemessageToastMessage