Skip to content

Instantly share code, notes, and snippets.

@StephenHodgson
Last active September 28, 2020 14:32
Show Gist options
  • Save StephenHodgson/19e304e070199e8aba4b19a92dd2aa3b to your computer and use it in GitHub Desktop.
Save StephenHodgson/19e304e070199e8aba4b19a92dd2aa3b to your computer and use it in GitHub Desktop.
// Copyright (c) XRTK. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using XRTK.Interfaces;
namespace XRTK.Examples.Demos.CustomExtensionServices
{
/// <summary>
/// The custom interface for your extension service.
/// Only use property accessors in these to better control access to internals.
/// This interface is the contract for others to use to make their own
/// implementations if shared publicly.
/// </summary>
public interface IDemoCustomExtensionService : IMixedRealityExtensionService
{
/// <summary>
/// A custom event.
/// </summary>
Action MyCustomEvent { get; set; }
/// <summary>
/// A custom property accessor.
/// </summary>
string MyCustomData { get; set; }
/// <summary>
/// A custom method call.
/// </summary>
void MyCustomMethod();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment