AnimationElement
Namespace: Busy.Bar
Exactly one of AnimationElement.Path or AnimationElement.StockPath should be set.
public sealed record class AnimationElement : DisplayElement, System.IEquatable`1[[Busy.Bar.DisplayElement, BusyBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IEquatable`1[[Busy.Bar.AnimationElement, BusyBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → DisplayElement → AnimationElement
Implements IEquatable<DisplayElement>, IEquatable<AnimationElement>
Attributes NullableContextAttribute, NullableAttribute
Properties
Path
Path to the animation file within the application's assets directory.
public string? Path { get; init; }
Property Value
StockPath
Name of a stock animation file bundled on the device.
public string? StockPath { get; init; }
Property Value
Loop
Whether to loop the requested part of the animation.
public bool Loop { get; init; }
Property Value
AwaitPreviousEnd
If this element was previously created with a different range and this is true, the previous range finishes playing before this one starts.
public bool AwaitPreviousEnd { get; init; }
Property Value
Section
Name of the section to play back. Specify "default" to select the entire animation.
public string? Section { get; init; }
Property Value
Opacity
Opacity of the animation, in the range [0, 100].
public int Opacity { get; init; }
Property Value
Id
Unique identifier for the element, used to update or remove it later.
public required string Id { get; init; }
Property Value
Timeout
Time in seconds the element should remain displayed (0 for no timeout). Mutually exclusive with DisplayElement.DisplayUntil.
public int? Timeout { get; init; }
Property Value
DisplayUntil
Unix timestamp, in seconds, at which the element is hidden. Mutually exclusive with DisplayElement.Timeout.
public string? DisplayUntil { get; init; }
Property Value
X
X coordinate of the element's anchor point, relative to the top-left of the display.
public int X { get; init; }
Property Value
Y
Y coordinate of the element's anchor point, relative to the top-left of the display.
public int Y { get; init; }
Property Value
Display
Which display to draw the element on.
public DisplayTarget Display { get; init; }
Property Value
Align
Anchor point of the element, used together with DisplayElement.X/DisplayElement.Y to position it.
public ElementAlign? Align { get; init; }
Property Value
Constructors
AnimationElement()
Caution
Constructors of types with required members are not supported in this version of your compiler.
public AnimationElement()