Struct LauncherSocialMediaEntry
- Namespace
- Hi3Helper.Plugin.Core.Management.Api
- Assembly
- Hi3Helper.Plugin.Core.dll
Entry of the launcher's social media data.
public struct LauncherSocialMediaEntry : IDisposable
- Implements
- Inherited Members
- Extension Methods
Constructors
LauncherSocialMediaEntry()
Entry of the launcher's social media data.
public LauncherSocialMediaEntry()
Fields
Flags
Defines the kind of properties or flags that a social media entry can have.
public LauncherSocialMediaEntryFlag Flags
Field Value
Properties
ChildEntryHandle
The handle of the child entry. The type is LauncherSocialMediaEntry
public readonly ref LauncherSocialMediaEntry ChildEntryHandle { get; }
Property Value
ClickUrl
Represent the click link/HREF string of this LauncherSocialMediaEntry instance.
public readonly string? ClickUrl { get; }
Property Value
Description
Represent the description string of this LauncherSocialMediaEntry instance.
public readonly string? Description { get; }
Property Value
IconHoverPath
Represent a path of the Hover Icon.
The format can be a Base64Url if IconHoverIsDataBuffer is defined
or a path/URL string if IconHoverIsPath is defined.
public readonly string? IconHoverPath { get; }
Property Value
IconPath
Represent a path of the Icon.
The format can be a Base64Url if IconIsDataBuffer is defined
or a path/URL string if IconIsPath is defined.
public readonly string? IconPath { get; }
Property Value
QrDescription
Represent the description string of the QR Image description.
public readonly string? QrDescription { get; }
Property Value
QrPath
Represent a path of the QR Image.
The format can be a Base64Url if QrImageIsDataBuffer is defined
or a path/URL string if QrImageIsPath is defined.
public readonly string? QrPath { get; }
Property Value
Methods
Dispose()
Dispose the handles of the icon, QR image, description, Click URL and its child handles.
public void Dispose()
WriteClickUrl(string?)
Write the click link/HREF of this entry.
public void WriteClickUrl(string? url)
Parameters
urlstringThe click link/HREF of this entry.
WriteClickUrl(Uri?)
Write the click link/HREF of this entry.
public void WriteClickUrl(Uri? url)
Parameters
urlUriThe click link/HREF of this entry.
WriteDescription(string?)
Write the description/name of this entry
public void WriteDescription(string? description)
Parameters
descriptionstringThe description/name of this entry.
WriteIcon(ReadOnlySpan<byte>)
public void WriteIcon(ReadOnlySpan<byte> buffer)
Parameters
bufferReadOnlySpan<byte>The buffer of the data to be written from.
WriteIcon(string?)
Write IconPath as a path or URL.
public void WriteIcon(string? path)
Parameters
pathstringThe path/URL to write.
WriteIconHover(ReadOnlySpan<byte>)
Write IconHoverPath as an embedded data in Base64Url format.
public void WriteIconHover(ReadOnlySpan<byte> buffer)
Parameters
bufferReadOnlySpan<byte>The buffer of the data to be written from.
WriteIconHover(string?)
Write IconHoverPath as a path or URL.
public void WriteIconHover(string? path)
Parameters
pathstringThe path/URL to write.
WriteQrImage(ReadOnlySpan<byte>)
public void WriteQrImage(ReadOnlySpan<byte> buffer)
Parameters
bufferReadOnlySpan<byte>The buffer of the data to be written from.
WriteQrImage(string?)
Write QrPath as a path or URL.
public void WriteQrImage(string? path)
Parameters
pathstringThe path/URL to write.
WriteQrImageDescription(string?)
Write the description/name of the QR Image
public void WriteQrImageDescription(string? description)
Parameters
descriptionstringThe description/name of the QR Image.