Skip to content

Commit

Permalink
get the rtc engine method
Browse files Browse the repository at this point in the history
  • Loading branch information
39251474 committed Jul 10, 2019
1 parent 95d180c commit bf46f0e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class AgoraRtcEnginePlugin implements MethodCallHandler {

private final Registrar mRegistrar;
private final MethodChannel mMethodChannel;
private RtcEngine mRtcEngine;
private static RtcEngine mRtcEngine;
private HashMap<String, SurfaceView> mRendererViews;
private Handler mEventHandler = new Handler(Looper.getMainLooper());

Expand All @@ -44,6 +44,10 @@ private SurfaceView getView(int id) {
return mRendererViews.get("" + id);
}

public static RtcEngine getRtcEngine() {
return mRtcEngine;
}

/**
* Plugin registration.
*/
Expand Down

0 comments on commit bf46f0e

Please sign in to comment.