ActivityIndicator
<ActivityIndicator>
is a UI component that shows a progress indicator signaling to the user of an operation running in the background.
<ActivityIndicator [busy]="isBusy" (busyChange)="onBusyChanged($event)">
</ActivityIndicator>
import { ActivityIndicator } from '@nativescript/core'
onBusyChanged(args: EventData) {
const indicator: ActivityIndicator = args.object
console.log(`indicator.busy changed to: ${indicator.busy}`)
}
<ActivityIndicator
busy="{{ isBusy }}"
busyChange="{{ onBusyChanged }}"
loaded="indicatorLoaded"
/>
import { ActivityIndicator } from '@nativescript/core'
onBusyChanged(args: EventData) {
const indicator: ActivityIndicator = args.object
console.log(`indicator.busy changed to: ${indicator.busy}`)
}
<activityIndicator busy={true} />
Properties
Name | Type | Description |
---|---|---|
|
|
Gets or sets whether the indicator is active.
When |
|
|
Gets the native android widget that represents the user interface for this component. Valid only when running on Android OS. |
|
|
Gets the native iOS UIActivityIndicatorView that represents the user interface for this component. Valid only when running on iOS. |
|
|
Additional inherited properties are not shown. Refer to the API Reference |