Nagram/TMessagesProj/jni/voip/tgcalls/platform/android/AndroidContext.h
2020-09-30 16:48:47 +03:00

27 lines
461 B
C++

#ifndef TGCALLS_ANDROID_CONTEXT_H
#define TGCALLS_ANDROID_CONTEXT_H
#include "PlatformContext.h"
#include <jni.h>
namespace tgcalls {
class AndroidContext final : public PlatformContext {
public:
AndroidContext(JNIEnv *env);
~AndroidContext() override;
jobject getJavaCapturer();
jclass getJavaCapturerClass();
private:
jclass VideoCameraCapturerClass = nullptr;
jobject javaCapturer = nullptr;
};
} // namespace tgcalls
#endif