Adding ViroKit. Needs AWSCore :(
This commit is contained in:
40
mobile/ios/ViroKit.framework/Headers/VROSoundDelegateiOS.h
Normal file
40
mobile/ios/ViroKit.framework/Headers/VROSoundDelegateiOS.h
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// VROSoundDelegateiOS.h
|
||||
// ViroRenderer
|
||||
//
|
||||
// Created by Andy Chu on 1/27/17.
|
||||
// Copyright © 2017 Viro Media. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef VROSoundDelegateiOS_h
|
||||
#define VROSoundDelegateiOS_h
|
||||
|
||||
#include "VROSoundDelegateInternal.h"
|
||||
#include "VROSoundDelegate.h"
|
||||
|
||||
class VROSoundDelegateiOS : public VROSoundDelegateInternal {
|
||||
|
||||
public:
|
||||
VROSoundDelegateiOS(id <VROSoundDelegate> delegate) :
|
||||
_delegate(delegate)
|
||||
{}
|
||||
virtual ~VROSoundDelegateiOS() {}
|
||||
|
||||
void soundIsReady() {
|
||||
[_delegate soundIsReady];
|
||||
}
|
||||
|
||||
void soundDidFail(std::string error) {
|
||||
[_delegate soundDidFail:[NSString stringWithUTF8String:error.c_str()]];
|
||||
}
|
||||
|
||||
void soundDidFinish() {
|
||||
[_delegate soundDidFinish];
|
||||
}
|
||||
private:
|
||||
__weak id <VROSoundDelegate> _delegate;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /* VROSoundDelegateiOS_h */
|
||||
Reference in New Issue
Block a user