Vitamio Chinese API documentation (4) -- VitamioInstaller

Source: Internet
Author: User

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Vitamio: http://www.vitamio.org

Farmer's uncle: http://www.cnblogs.com/over140/

 

Body 

VitamioInstaller

Sorting: peasant uncle

Class Overview

Public class VitamioInstaller

Before using any classes and methods of the program, we recommend that you use this class to check whether the device has installed the Vitamio plug-in.

 

Constant

Public static final intVITAMIO_VERSION_CODE

Vitamio version No.

Public static final StringVITAMIO_VERSION_NAME

Vitamio version name

Public static final StringVITAMIO_PACKAGE

Vitamio package name

Public static final intVITAMIO_NOT_SUPPORTED

Vitamio decoding library type-not supported.

Public static final intVITAMIO_ARMV6

Vitamio decoding library type-for ARMv6.

Public static final intVITAMIO_ARMV6_VFP

Vitamio decoding library type-for ARMv6 VFP.

Public static final intVITAMIO_ARMV7_VFPV3

Vitamio decoding library type-for ARMv7 VFPV3.

Public static final intVITAMIO_ARMV7_NEON

Vitamio decoding library type-for ARMv7 NEON.

 

Common Methods

Public static StringGetCompatiblePackage()

Returns the name of the compatible package.

Public static intGetVitamioType()

Obtain the type of the Vitamio decoder library. For the return value, see constants.

Public static StringCheckVitamioInstallation(Context ctx)

Check whether the Vitamio plug-in is installed.

Return Value

Returns the compatible package name.

Exception

When VitamioNotCompatibleException does not support decoding libraries

When the VitamioNotFoundException cannot find the Vitamio plug-in

 

Public static StringCheckVitamioInstallation(Context ctx, int desireVersion)

Check whether the Vitamio plug-in has been installed and whether it has expired.

Parameters

CtxContext

Target version number of desireVersion

Return Value

Returns the compatible package name.

Exception

When VitamioNotCompatibleException does not support decoding libraries

When the VitamioNotFoundException cannot find the Vitamio plug-in

VitamioOutdateException the installed Vitamio plug-in has expired.

Public static StringGetVitamioInfo(Context ctx)

Obtain the installation information of Vitamio. For example, the version name and installation path.

Public static final StringGetLibraryPath()

Obtain VitamioDecode library installation path.

Public static booleanIsNativeLibsInited(Context context)

Whether the decoding package has been initialized. (Decompress and initialize the decoding package)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.