Skip to content

Commit 9463dfc

Browse files
Merge pull request #2707 from SimonDarksideJ/mrtk_development_autostart
New AutoStartBehavior enum for features
2 parents c365b71 + 1920674 commit 9463dfc

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
namespace Microsoft.MixedReality.Toolkit.Core.Definitions.Utilities
5+
{
6+
/// <summary>
7+
/// This enumeration identifies two different ways to handle the startup behavior for a feature.
8+
/// Both will warm up the component, ready for it's use (e.g. connecting backend services or registering for events.
9+
/// The first causes the feature to start immediately. The second allows the feature to be manually started at a later time.
10+
/// </summary>
11+
public enum AutoStartBehavior
12+
{
13+
/// <summary>
14+
/// Automatically start the feature
15+
/// </summary>
16+
AutoStart = 0,
17+
/// <summary>
18+
/// Delay the start of the feature until the user requests it to begin
19+
/// </summary>
20+
ManualStart
21+
}
22+
}

Assets/MixedRealityToolkit/_Core/Utilities/AutoStartBehavior.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)