![]() |
Gamebase SDK for Android 2.47.0
NHN Cloud Gamebase Platform
|
This class provides Android utility functions. More...

Static Public Member Functions | |
| static void | showToast (@NonNull final Context context, @NonNull final String message, @ToastDuration int duration) |
| Show a standard toast that just contains a text view. More... | |
| static void | showAlert (@NonNull final Context context, @NonNull final String title, @NonNull final String message) |
| This method to create the dialog and display it on screen. More... | |
| static void | showAlert (@NonNull final Context context, @NonNull final String title, @NonNull final String message, @Nullable final DialogInterface.OnClickListener clickListener) |
| This method to create the dialog and display it on screen. More... | |
| static void | requestPermissions (@NonNull Context context, @NonNull List< String > permissions, @Nullable PermissionsUtil.RequestPermissionCallback callback) |
| Request android permissions in runtime. More... | |
| static boolean | checkPermissions (@NonNull Context context, @NonNull List< String > permissions) |
| Determine whether you have been granted a particular permission. More... | |
This class provides Android utility functions.
|
static |
Determine whether you have been granted a particular permission.
| context | Main activity. |
| permissions | The name of the permission being checked. |
|
static |
Request android permissions in runtime.
| context | A Context of the application package implementing this class. |
| permissions | The name of the permissions that are needed. |
| callback | The callback. |
|
static |
This method to create the dialog and display it on screen.
| context | The context to use. Usually your android.app.Application or android.app.Activity object. |
| title | The title displayed in the dialog. |
| message | The message to display. |

|
static |
This method to create the dialog and display it on screen.
| context | The context to use. Usually your android.app.Application or android.app.Activity object. |
| title | The title displayed in the dialog. |
| message | The message to display. |
| clickListener | The clickListener to be invoked when the button of the dialog is pressed. |

|
static |
Show a standard toast that just contains a text view.
| context | The context to use. Usually your android.app.Applicationor android.app.Activity object. |
| message | The message to show. |
| duration | How long to display the message. Either android.widget.Toast#LENGTH_SHORT or android.widget.Toast#LENGTH_LONG |
