Table of Contents

Class Hint.Android

Namespace
Sdl3Sharp
Assembly
Sdl3Sharp.dll

SDL_HINT_ANDROID_*

public static class Hint.Android
Inheritance
Hint.Android
Inherited Members

Properties

AllowRecreateActivity

Gets a hint to control whether the SDL activity is allowed to be re-created

public static Hint AllowRecreateActivity { get; }

Property Value

Hint

A hint to control whether the SDL activity is allowed to be re-created

Remarks

If this hint is true, the activity can be recreated on demand by the OS, and Java static data and C++ static data remain with their current values. If this hint is false, then SDL will call exit() when you return from your main function and the application will be terminated and then started fresh each time.

The hint can be set to the following values:

  • "0"The application starts fresh at each launch (default)
  • "1"The application activity can be recreated by the OS

This hint can be set anytime.

See Also

BlockOnPause

Gets a hint to control whether the event loop will block itself when the app is paused

public static Hint BlockOnPause { get; }

Property Value

Hint

A hint to control whether the event loop will block itself when the app is paused

Remarks

The hint can be set to the following values:

  • "0"Non blocking
  • "1"Blocking (default)

This hint should be set before SDL is initialized.

See Also

LowLatencyAudio

Gets a hint to control whether low latency audio should be enabled

public static Hint LowLatencyAudio { get; }

Property Value

Hint

A hint to control whether low latency audio should be enabled

Remarks

Some devices have poor quality output when this is enabled, but this is usually an improvement in audio latency.

The hint can be set to the following values:

  • "0"Low latency audio is not enabled
  • "1"Low latency audio is enabled (default)

This hint should be set before SDL audio is initialized.

See Also

TrapBackButton

Gets a hint to control whether we trap the Android back button to handle it manually

public static Hint TrapBackButton { get; }

Property Value

Hint

A hint to control whether we trap the Android back button to handle it manually

Remarks

This is necessary for the right mouse button to work on some Android devices, or to be able to trap the back button for use in your code reliably. If this hint is true, the back button will show up as an EventType.Keyboard.KeyDown / EventType.Keyboard.KeyUp pair with a keycode of Scancode.ApplicationControl.Back.

The hint can be set to the following values:

  • "0"Back button will be handled as usual for system (default)
  • "1"Back button will be trapped, allowing you to handle the key press manually (This will also let right mouse click work on systems where the right mouse button functions as back)

This hint can be set anytime.

See Also