Table of Contents

Class LauncherApiNewsBase

Namespace
Hi3Helper.Plugin.Core.Management.Api
Assembly
Hi3Helper.Plugin.Core.dll
[GeneratedComClass]
[ComExposedClass<ComClassInformation>]
public abstract class LauncherApiNewsBase : LauncherApiBase, ILauncherApiNews, ILauncherApi, IInitializableTask, IFree
Inheritance
LauncherApiNewsBase
Implements
Inherited Members

Methods

GetCarouselEntries(out nint, out int, out bool, out bool)

Get the carousel image entries for the launcher.
This method returns a handle to the PluginDisposableMemory<T> of LauncherCarouselEntry.
Pass this method to ToManagedSpan<T>(MarshalToMemorySelectorDelegate) to get the span.

public abstract void GetCarouselEntries(out nint handle, out int count, out bool isDisposable, out bool isAllocated)

Parameters

handle nint

The handle to the pointer of the LauncherCarouselEntry data

count int

How much data of LauncherCarouselEntry inside of the handle

isDisposable bool

Whether the handle is disposable

isAllocated bool

true if it's not empty. Otherwise, false

GetNewsEntries(out nint, out int, out bool, out bool)

Get the news entries fot the launcher.
This method returns a handle to the PluginDisposableMemory<T> of LauncherNewsEntry.
Pass this method to ToManagedSpan<T>(MarshalToMemorySelectorDelegate) to get the span.

public abstract void GetNewsEntries(out nint handle, out int count, out bool isDisposable, out bool isAllocated)

Parameters

handle nint

The handle to the pointer of the LauncherNewsEntry data

count int

How much data of LauncherNewsEntry inside of the handle

isDisposable bool

Whether the handle is disposable

isAllocated bool

true if it's not empty. Otherwise, false

GetSocialMediaEntries(out nint, out int, out bool, out bool)

Get the social media info entries for the launcher.
This method returns a handle to the PluginDisposableMemory<T> of LauncherSocialMediaEntry.
Pass this method to ToManagedSpan<T>(MarshalToMemorySelectorDelegate) to get the span.

public abstract void GetSocialMediaEntries(out nint handle, out int count, out bool isDisposable, out bool isAllocated)

Parameters

handle nint

The handle to the pointer of the LauncherSocialMediaEntry data

count int

How much data of LauncherSocialMediaEntry inside of the handle

isDisposable bool

Whether the handle is disposable

isAllocated bool

true if it's not empty. Otherwise, false