# MetaUserLinkerAsync

{% hint style="warning" %}
This class was replaced by UserLinkerAsync in v6.0.0.
{% endhint %}

This interface is used with [`setMetaUserLinker(MetaUserLinkerAsync)`](https://docs.sentiance.com/important-topics/sdk/api-reference/sdkconfig/sdkconfig-builder#setmetauserlinker-1).

Learn more about Meta-Users [here](https://github.com/sentiance/v4-docs/blob/main/sdk/api-reference/android/broken-reference/README.md).

## MetaUserLinker API

|         |                                                                                                                                                                                                                                       |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| boolean | [link](https://docs.sentiance.com/important-topics/sdk/api-reference/userlinker#link) (String installId, [MetaUserLinkerCallback](https://docs.sentiance.com/important-topics/sdk/api-reference/android/userlinkercallback) callback) |

### `link()`

> ```java
> boolean link(String installId, MetaUserLinkerCallback callback)
> ```
>
> This method will be called when your app needs to handle MetaUser linking, normally during the first ever SDK initialization, but also if MetaUsers are enabled afterwards. This method will be executed on a background thread.

| Parameters |                                                                                                                                                                                   |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| installId  | A unique Sentiance ID representing the current installation                                                                                                                       |
| callback   | A [`MetaUserLInkerCallback`](https://docs.sentiance.com/important-topics/sdk/api-reference/android/userlinkercallback) you must invoke to inform the SDK about the linking result |
