blob: 215a7629f2f751a5a4a4cf396fd5101a7d72fe12 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.ui.activity;
/// DiscreteActivity is an activity which occurs at a point in time.
type DiscreteActivity = flexible union {
/// Activities that require no special handling.
1: generic GenericActivity;
};
/// OngoingActivity is an activity which has a definite start and end time.
type OngoingActivity = flexible union {
/// Activities that require no special handling.
1: generic GenericActivity;
};
/// GenericActivity is a user or system activity of unspecified type, e.g.
/// a keyboard press or an alarm going off.
type GenericActivity = table {
/// Brief human-readable label for the activity, for logging/debugging.
/// e.g. "cursor", "key", "video"
1: label string;
};