Constructor and Description |
---|
Dagger2.UiModule()
Initialises a newly created
UiModule object. |
Modifier and Type | Method and Description |
---|---|
protected Core.BaseDialog |
getAlert(boolean useSnackbarIsoAlert,
int resId,
int requestCode,
Boolean yesNo)
Creates new instance of the alert dialog.
|
protected boolean |
getFlagAlert(Dagger2.Parameters parameters)
Gets the
useSnackbarIsoAlert flag (please refer to getAlert(boolean, int, int, java.lang.Boolean) method). |
protected static boolean |
getFlagToast(Dagger2.Parameters parameters)
Gets the
useSnackbarIsoToast flag (please refer to getToast(boolean, boolean) method). |
protected Core.BaseDialog |
getProgress()
Creates new instance of the progress dialog.
|
protected static Core.BaseDialog |
getToast(boolean useSnackbarIsoToast,
boolean durationLong)
|
public Dagger2.UiModule()
UiModule
object.protected Core.BaseDialog getAlert(boolean useSnackbarIsoAlert, @StringRes int resId, int requestCode, Boolean yesNo)
useSnackbarIsoAlert
- true
for using Snackbar
instead of dialog alertresId
- The resource ID of the dialog message's textrequestCode
- The integer request code to pass to the Activity.onActivityResult()
yesNo
- true
for YES / NO buttons, false
for OK / CANCEL onesprotected boolean getFlagAlert(Dagger2.Parameters parameters)
useSnackbarIsoAlert
flag (please refer to getAlert(boolean, int, int, java.lang.Boolean)
method).parameters
- The Parameters
objectuseSnackbarIsoAlert
flagprotected static boolean getFlagToast(Dagger2.Parameters parameters)
useSnackbarIsoToast
flag (please refer to getToast(boolean, boolean)
method).parameters
- The Parameters
objectuseSnackbarIsoToast
flagprotected Core.BaseDialog getProgress()
protected static Core.BaseDialog getToast(boolean useSnackbarIsoToast, boolean durationLong)
Copyright © 2015-2017 akha, a.k.a. Alexander Kharitonov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.