Class NewsManager
- Namespace
- TaleWorlds.Library.NewsManager
- Assembly
- TaleWorlds.Library.dll
public class NewsManager
- Inheritance
-
NewsManager
- Inherited Members
Constructors
NewsManager()
public NewsManager()
Properties
IsInPreviewMode
public bool IsInPreviewMode { get; }
Property Value
LocalizationID
public string LocalizationID { get; }
Property Value
NewsItems
public MBReadOnlyList<NewsItem> NewsItems { get; }
Property Value
Methods
DeserializeObjectAsync<T>(string)
public static Task<T> DeserializeObjectAsync<T>(string json)
Parameters
json
string
Returns
- Task<T>
Type Parameters
T
GetNewsItems(bool)
public Task<MBReadOnlyList<NewsItem>> GetNewsItems(bool forceRefresh)
Parameters
forceRefresh
bool
Returns
OnFinalize()
public void OnFinalize()
SetNewsSourceURL(string)
public void SetNewsSourceURL(string url)
Parameters
url
string
UpdateLocalizationID(string)
public void UpdateLocalizationID(string localizationID)
Parameters
localizationID
string
UpdateNewsItems(bool)
public Task UpdateNewsItems(bool forceRefresh)
Parameters
forceRefresh
bool
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).