Nagram/TMessagesProj/jni/voip/tgcalls/platform/android/AndroidContext.h
2020-12-24 09:36:01 +04:00

31 lines
604 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, jobject instance);
~AndroidContext() override;
jobject getJavaCapturer();
jobject getJavaInstance();
jclass getJavaCapturerClass();
void setJavaInstance(JNIEnv *env, jobject instance);
private:
jclass VideoCameraCapturerClass = nullptr;
jobject javaCapturer = nullptr;
jobject javaInstance = nullptr;
};
} // namespace tgcalls
#endif