public class HmsPickerBuilder
extends java.lang.Object
| Constructor and Description |
|---|
HmsPickerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HmsPickerBuilder |
addHmsPickerDialogHandler(HmsPickerDialogFragment.HmsPickerDialogHandlerV2 handler)
Attach universal objects as additional handlers for notification when the Picker is set.
|
HmsPickerBuilder |
removeHmsPickerDialogHandler(HmsPickerDialogFragment.HmsPickerDialogHandlerV2 handler)
Remove objects previously added as handlers.
|
HmsPickerBuilder |
setFragmentManager(FragmentManager manager)
Attach a FragmentManager.
|
HmsPickerBuilder |
setOnDismissListener(OnDialogDismissListener onDismissListener) |
HmsPickerBuilder |
setPlusMinusVisibility(int plusMinusVisibility)
Set the visibility of the +/- button.
|
HmsPickerBuilder |
setReference(int reference)
Attach a reference to this Picker instance.
|
HmsPickerBuilder |
setStyleResId(int styleResId)
Attach a style resource ID for theming.
|
HmsPickerBuilder |
setTargetFragment(Fragment targetFragment)
Attach a target Fragment.
|
HmsPickerBuilder |
setTime(int hours,
int minutes,
int seconds)
Set some initial values for the picker
|
HmsPickerBuilder |
setTimeInMilliseconds(long timeInMilliseconds)
Set some initial values for the picker
|
HmsPickerBuilder |
setTimeInSeconds(int timeInSeconds)
Set some initial values for the picker
|
void |
show()
Instantiate and show the Picker
|
public HmsPickerBuilder setPlusMinusVisibility(int plusMinusVisibility)
plusMinusVisibility - an int corresponding to View.VISIBLE, View.INVISIBLE, or View.GONEpublic HmsPickerBuilder setFragmentManager(FragmentManager manager)
manager - the FragmentManager that handles the transactionpublic HmsPickerBuilder setStyleResId(int styleResId)
styleResId - the style resource ID to use for themingpublic HmsPickerBuilder setTargetFragment(Fragment targetFragment)
targetFragment - the Fragment to attach topublic HmsPickerBuilder setReference(int reference)
reference - a user-defined int intended for Picker trackingpublic HmsPickerBuilder addHmsPickerDialogHandler(HmsPickerDialogFragment.HmsPickerDialogHandlerV2 handler)
handler - an Object implementing the appropriate Picker Handlerpublic HmsPickerBuilder removeHmsPickerDialogHandler(HmsPickerDialogFragment.HmsPickerDialogHandlerV2 handler)
handler - the Object to removepublic HmsPickerBuilder setTime(int hours, int minutes, int seconds)
hours - the initial hours valueminutes - the initial minutes valueseconds - the initial seconds valuepublic HmsPickerBuilder setTimeInSeconds(int timeInSeconds)
timeInSeconds - the time in secondspublic HmsPickerBuilder setTimeInMilliseconds(long timeInMilliseconds)
timeInMilliseconds - the time in millisecondspublic void show()
public HmsPickerBuilder setOnDismissListener(OnDialogDismissListener onDismissListener)