# MlKit

public class **MlKit** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Public entry point to manually initialize ML Kit.

### Public Method Summary

|---|---|
| static void | [initialize](https://developers.google.com/android/reference/com/google/mlkit/common/MlKit#initialize(android.content.Context))([Context](https://developer.android.com/reference/android/content/Context.html) context) Initializes ML Kit with the given `context`. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public static void **initialize** ([Context](https://developer.android.com/reference/android/content/Context.html) context)

Initializes ML Kit with the given `context`.

It is only necessary to call this method if you disable the content provider
declared in the manifest(e.g. when you want to use ML Kit feature in `https://developer.android.com/reference/android/app/Application.html`).
Under normal circumstances the content provider will automatically initialize ML Kit at
application startup.

How to disable ML Kit initialization content provider:

```
<provider
   android:name="com.google.mlkit.common.internal.MlKitInitProvider"
   android:authorities="${applicationId}.mlkitinitprovider"
   tools:node="remove" />
```

##### Parameters

| context | a `https://developer.android.com/reference/android/content/Context.html` used to initialize ML Kit. This does not have to be the application context itself. |
|---|---|