# RemoteMsgConstructor

Artifact: [androidx.test.espresso:espresso-core](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/remote/annotation/RemoteMsgConstructor.java+class:androidx.test.espresso.remote.annotation.RemoteMsgConstructor)

*** ** * ** ***


```
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.CONSTRUCTOR])
public annotation RemoteMsgConstructor
```

<br />

*** ** * ** ***

Constructors annotated with `https://developer.android.com/reference/androidx/test/espresso/remote/annotation/RemoteMsgConstructor` are called during remote message deserialization to recreate a previously serialized instance.

This annotation is the counterpart of FieldDescriptor. Any instance fields marked as serializable using an FieldDescriptor will be injected into the annotated constructor.

Note: The annotated constructors param order must match the order defined in FieldDescriptor

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/remote/GenericRemoteMessage` |   |