DeviceLostCallback


public fun interface DeviceLostCallback


Summary

Public methods

abstract void
onDeviceLost(@NonNull GPUDevice device, int reason, @NonNull String message)

A callback function for handling device loss events.

Public methods

onDeviceLost

Added in 1.0.0-alpha04
abstract void onDeviceLost(@NonNull GPUDevice device, int reason, @NonNull String message)

A callback function for handling device loss events.

Parameters
@NonNull GPUDevice device

A pointer to the device that was lost.

int reason

The reason for the device loss.

@NonNull String message

An optional message providing more details on the device loss.