Nagram/TMessagesProj/jni/tgcalls/platform/android/AndroidContext.h

27 lines
461 B
C
Raw Normal View History

2020-08-14 16:58:22 +00:00
#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