-
- All Implemented Interfaces:
-
de.c1710.filemojicompat_ui.versions.VersionProvider
public final class VersionOnline implements VersionProvider
A Version that can be retrieved from the internet (needs internet permissions of course).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVersionOnline.Companion
-
Constructor Summary
Constructors Constructor Description VersionOnline(Context context, URI source, Regex regex, Integer regexGroupId)VersionOnline(Context context, URI source, Regex regex)VersionOnline(Context context, URI source)
-
Method Summary
Modifier and Type Method Description VersiongetVersion()Returns the version provided. -
-
Constructor Detail
-
VersionOnline
VersionOnline(Context context, URI source, Regex regex, Integer regexGroupId)
- Parameters:
source- The URL to get the information from.regex- A regular expression to find the version in the document.regexGroupId- The ID/number of the group of the regex that contains the actual version string
-
VersionOnline
VersionOnline(Context context, URI source, Regex regex)
- Parameters:
source- The URL to get the information from.regex- A regular expression to find the version in the document.
-
-
Method Detail
-
getVersion
Version getVersion()
Returns the version provided. This might block on a java.util.concurrent.Future, therefore it should be called as late as possible
-
-
-
-