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
jsonstring
Returns
- Task<T>
Type Parameters
T
GetNewsItems(bool)
public Task<MBReadOnlyList<NewsItem>> GetNewsItems(bool forceRefresh)
Parameters
forceRefreshbool
Returns
OnFinalize()
public void OnFinalize()
SetNewsSourceURL(string)
public void SetNewsSourceURL(string url)
Parameters
urlstring
UpdateLocalizationID(string)
public void UpdateLocalizationID(string localizationID)
Parameters
localizationIDstring
UpdateNewsItems(bool)
public Task UpdateNewsItems(bool forceRefresh)
Parameters
forceRefreshbool
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).