Class Loading
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
The Loading class of nui component. It's used to indicate informs users of the ongoing operation.
public class Loading : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectLoading
- Implements
-
System.IDisposable
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Constructors
View SourceLoading()
The constructor of Loading.
Declaration
public Loading()
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Loading(string)
Constructor of the Loading class with special style.
Declaration
public Loading(string style)
Parameters
| Type | Name | Description |
|---|---|---|
| string | style | The string to initialize the Loading. |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Loading(LoadingStyle)
The constructor of the Loading class with specific style.
Declaration
public Loading(LoadingStyle loadingStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| LoadingStyle | loadingStyle | The style object to initialize the Loading. |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Fields
View SourceFrameRateProperty
The FrameRate bindable property.
Declaration
public static readonly BindableProperty FrameRateProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
ImageArrayProperty
ImageArrayProperty
Declaration
public static readonly BindableProperty ImageArrayProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
ImageListProperty
The ImageList bindable property.
Declaration
public static readonly BindableProperty ImageListProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
LottieResourceUrlProperty
The lottie resource url bindable property.
Declaration
public static readonly BindableProperty LottieResourceUrlProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
SizeProperty
The Size bindable property.
Declaration
public static readonly BindableProperty SizeProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Properties
View SourceFrameRate
Gets or sets frame rate of loading.
Declaration
public int FrameRate { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
ImageArray
Gets or sets loading image resource array. The mutually exclusive with "LottieResourceUrl".
Declaration
public string[] ImageArray { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
ImageList
Gets loading image resource array.
Declaration
public IList<string> ImageList { get; }
Property Value
| Type | Description |
|---|---|
| IList<><string> |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
LottieResourceUrl
Gets or sets an lottie resource url. The mutually exclusive with "ImageArray".
Declaration
public string LottieResourceUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Size
Gets or sets loading size.
Declaration
public Size Size { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Style
Return currently applied style.
Declaration
public LoadingStyle Style { get; }
Property Value
| Type | Description |
|---|---|
| LoadingStyle |
Remarks
Modifying contents in style may cause unexpected behaviour.
Methods
View SourceApplyStyle(ViewStyle)
Apply style instance to the view. Basically it sets the bindable property to the value of the bindable property with same name in the style.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewStyle | viewStyle |
Overrides
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
CreateViewStyle()
Get Loading style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
| Type | Description |
|---|---|
| ViewStyle | The default loading style. |
Overrides
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Dispose(DisposeTypes)
Dispose Loading.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | Dispose type. |
Overrides
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
OnInitialize()
Overrides the parent method. This method is called by the framework when the instance is created.
Declaration
public override void OnInitialize()
Overrides
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Pause()
Pause Loading Animation.
Declaration
public void Pause()
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Play()
Play Loading Animation.
Declaration
public void Play()
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.
Stop()
Stop Loading Animation.
Declaration
public void Stop()
Remarks
The Loading is created as LottieAnimationView first.
When the user sets ImageArray separately, the image is changed to ImageVisual.