ExtensionVersion
public abstract class ExtensionVersion
Provides interfaces to check the extension version.
Summary
Public methods |
|
|---|---|
static @Nullable Version |
Return the Version object of the OEM library if the version is compatible with CameraX. |
static @NonNull boolean |
|
static @NonNull boolean |
Indicate the compatibility of CameraX and OEM library. |
Public methods
getRuntimeVersion
@Nullable
@NonNull
public static Version getRuntimeVersion()
Return the Version object of the OEM library if the version is compatible with CameraX.
| Returns | |
|---|---|
Version |
a Version object which composed of the version number string that's returned from |
isExtensionVersionSupported
@NonNull
public static boolean isExtensionVersionSupported()
Indicate the compatibility of CameraX and OEM library.
| Returns | |
|---|---|
boolean |
true if OEM returned a major version is matched with the current version, false otherwise. |