Base class for Activity Host classes.
More...
#include <kanzi/ui/node/concept/activity/activity_host_concept.hpp>
Base class for Activity Host classes.
This class defines common types, properties and messages for Activity Host classes.
- See also
- ExclusiveActivityHost2D, ExclusiveActivityHost3D, ParallelActivityHost2D, ParallelActivityHost3D.
Specifies possible stages for internal tracking of activation of an Activity.
Enumerator |
---|
PreparingForActivation |
The Activity is preparing for the activation sequence.
For example, resources can be loaded at this stage.
|
ParallelAnimation |
The Activity is in animation stage parallel to another Activity.
|
ExclusiveAnimation |
The Activity is in exclusive animation stage.
|
Specifies possible stages for internal tracking of deactivation of an Activity.
Enumerator |
---|
ExclusiveAnimation |
The Activity is in exclusive animation stage.
|
ParallelAnimation |
The Activity is in animation stage parallel to another Activity.
|
WaitingForRelease |
The Activity has finished all possible actions during the deactivation.
|
virtual kanzi::ActivityHostConcept::~ActivityHostConcept |
( |
| ) |
|
|
virtualdefault |
template<typename Type >
static bool kanzi::ActivityHostConcept::isActivityHost |
( |
const Type & |
object | ) |
|
|
inlinestatic |
Determines if an object is an ActivityHost.
- Parameters
-
- Returns
- Returns true if the object is an ActivityHost, false otherwise.
static bool kanzi::ActivityHostConcept::isActivityHostMetaclass |
( |
const Metaclass * |
metaclass | ) |
|
|
inlinestatic |
Checks whether the given Metaclass is an ActivityHostConcept metaclass or contains it as a mixin metaclass.
- Parameters
-
metaclass | The metaclass to check. |
- Returns
- If the given metaclass is an ActivityHostConcept metaclass or contains it as a mixin metaclass, returns true, otherwise false.
- Since
- Kanzi 3.9.4
virtual void kanzi::ActivityHostConcept::setActivationModifier |
( |
string_view |
activityName, |
|
|
BindingTokenWeakPtr |
weakModifier |
|
) |
| |
|
pure virtual |
Sets a property modifier to apply activation to a child Activity Node of an Activity Host.
The created modifier is a BindingToken for the property that keeps a child Activity node activated for as long as the token is alive. ApplyActivationAction uses this method to apply activation to an Activity Node, upon invocation.
For ParallelActivityHost:
For ExclusiveActivityHost:
- Parameters
-
activityName | The name of the Activity node that the ApplyActivationAction activates. |
weakModifier | A BindingToken owned by the ApplyActivationAction. For ParallelActivityHost, Kanzi waits until the child Activity node prefab is instantiated. Only after the prefab is instantiated can Kanzi set the property modifier binding on the child Activity node. For ExclusiveActivityHost Kanzi does not have to wait for prefab to instantiate because it sets the property modifier directly on the Activity Host and not on its child Activity nodes. |
- Since
- Kanzi 3.9.0
Implemented in kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, and kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >.
virtual void kanzi::ActivityHostConcept::onActivateActivityOverride |
( |
string_view |
activationPath, |
|
|
bool |
resetHistory |
|
) |
| |
|
pure virtual |
Derived classes implement this method to react to ActivateActivity message.
- Parameters
-
activationPath | Activation path to activate the child Activities of the Activity Host. |
resetHistory | Whether to reset Activity property values of the Activity to activate. |
- Since
- Kanzi 3.9.8 added
resetHistory
.
Implemented in kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::DataDrivenExclusiveActivityHostImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::DataDrivenExclusiveActivityHostImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, and kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >.
virtual vector<string> kanzi::ActivityHostConcept::getActivatingNames |
( |
| ) |
|
|
pure virtual |
Returns the names of activating Activities in this Activity Host.
- Returns
- The names of activating Activities in this Activity Host.
- Since
- Kanzi 3.9.4
Implemented in kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, and kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >.
virtual void kanzi::ActivityHostConcept::resolveFocusWithPolicy |
( |
Node & |
activityNode | ) |
|
|
pure virtual |
Focuses a given Activity if the focusing policy of this Activity Host instructs so.
- Parameters
-
activityNode | The Activity to which to apply the focusing policy. |
- See also
- ExclusiveActivityHostConcept::ExclusiveActivityHostFocusingPolicy, ParallelActivityHostConcept::ParallelActivityHostFocusingPolicy
- Since
- Kanzi 3.9.4
Implemented in kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >, kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, and kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >.
You can send ActivateActivity to the Activity Host to activate an Activity.
Exclusive Activity Host deactivates the previously active Activity at the same time.
To activate an Activity in an Activity Host:
ActivityHostConcept::ActivationMessageArguments args;
You can send DeactivateActivity to the Activity Host to deactivate an Activity.
Exclusive Activity Host ignores this message.
To deactivate an Activity in a Parallel Activity Host:
ActivityHostConcept::ActivationMessageArguments args;
An Activity Host sends this message when it attaches the prefab of the Activity that is activated.
- Since
- Kanzi 3.9.1.
An Activity Host sends this message when it attaches the prefab of the Activity that is activated.
- Since
- Kanzi 3.9.1.
Internal message sent by an Activity Host to its parent Activity or Activity Host to register the Activity Host in the parent.
Internal message sent by an Activity Host to its parent Activity or Activity Host to unregister the Activity Host from the parent.
The documentation for this class was generated from the following file: