共用方式為


WallpaperService.Engine.OnSurfaceChanged 方法

定義

方便使用 SurfaceHolder.Callback#surfaceChanged SurfaceHolder.Callback.surfaceChanged()

[Android.Runtime.Register("onSurfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetOnSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler")]
public virtual void OnSurfaceChanged (Android.Views.ISurfaceHolder? holder, Android.Graphics.Format format, int width, int height);
[<Android.Runtime.Register("onSurfaceChanged", "(Landroid/view/SurfaceHolder;III)V", "GetOnSurfaceChanged_Landroid_view_SurfaceHolder_IIIHandler")>]
abstract member OnSurfaceChanged : Android.Views.ISurfaceHolder * Android.Graphics.Format * int * int -> unit
override this.OnSurfaceChanged : Android.Views.ISurfaceHolder * Android.Graphics.Format * int * int -> unit

參數

format
Format
width
Int32
height
Int32
屬性

備註

方便使用 SurfaceHolder.Callback#surfaceChanged SurfaceHolder.Callback.surfaceChanged()

android.service.wallpaper.WallpaperService.Engine.onSurfaceChanged(android.view.SurfaceHolder, int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於