Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,38 @@
//
// VROARNodeDelegate.h
// ViroKit
//
// Created by Andy Chu on 7/3/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
#ifndef VROARNodeDelegate_h
#define VROARNodeDelegate_h
class VROARAnchor;
class VROARDeclarativeNodeDelegate {
public:
VROARDeclarativeNodeDelegate() {}
virtual ~VROARDeclarativeNodeDelegate() {}
/*
Notifies the delegate that the node was attached to the given anchor. The
delegate should NOT hold onto the anchor.
*/
virtual void onARAnchorAttached(std::shared_ptr<VROARAnchor> anchor) = 0;
/*
Notifies the delegate that the underlying anchor was updated. The
delegate should NOT hold onto the anchor.
*/
virtual void onARAnchorUpdated(std::shared_ptr<VROARAnchor> anchor) = 0;
/*
Notifies the delegate that the underlying anchor was removed.
*/
virtual void onARAnchorRemoved() = 0;
};
#endif /* VROARNodeDelegate_h */