Allows for the results to be periodically refreshed, as long as the UI remains open. For more information, see the Refreshing Your Content Developers' Guide and the Refresh Sample Capsule.
...
refresh {
if ((size(this) == 1) and (this.flightState == 'active')) {
spec {
delay-seconds (this.flightNumber) // a silly example, but shows you can use property values too
with-request {
if (true) { // obviously optional, for demonstration purposes only
intent {
goal {FlightStatus}
value {$expr(this.carrier)}
value {$expr(this.flightNumber)}
}
}
}
}
}
}
}
...
spec optional | Contains the information to process the refresh |
Copyright 2025 Samsung All rights reserved