差分

ナビゲーションに移動 検索に移動

.NET for AndroidでSurfaceViewのANativeWindowを取得する

10 バイト追加, 2024年4月23日 (火)
編集の要約なし
public static extern IntPtr ANativeWindow_fromSurface(IntPtr env, IntPtr surface);
public static ANativeWindowFromSurfaceViewIntPtr GetANativeWindowFromSurfaceView(SurfaceView surfaceView) {
Surface surface = surfaceView.Holder.Surface;
IntPtr surfacePtr = JNIEnv.ToLocalJniHandle(surface);

案内メニュー