# valueOf



## Scope and provenance

- Product: mobile
- Status: Imported reference snapshot. Import date is not a verification date or guarantee of current release support.
- SDK version: Not declared for this page. Versions in examples must not be assumed current.
- Environment: Page-specific. Confirm the environment host, credentials, and service configuration; do not infer them from another product.
- Source: https://documentation.idmission.com/identity/Android-SDK-2/-i-dentity--s-d-k/com.idmission.sdk2.client.model/-cancel-button-gravity/value-of.html
- Imported at: 2026-10-21T17:27:02.187Z
- Canonical page: https://docs.idmission.com/mobile/reference/android/-i-dentity--s-d-k/com.idmission.sdk2.client.model/-cancel-button-gravity/value-of
- Agent index: https://docs.idmission.com/llms.txt

---

[IDentity-SDK](https://docs.idmission.com/markdown/mobile/android-sdk-2.md)/[com.idmission.sdk2.client.model](https://docs.idmission.com/markdown/mobile/reference/android/-i-dentity--s-d-k/com.idmission.sdk2.client.model.md)/[CancelButtonGravity](https://docs.idmission.com/markdown/mobile/reference/android/-i-dentity--s-d-k/com.idmission.sdk2.client.model/-cancel-button-gravity.md)/valueOf

<a id="valueof"></a>

# value​Of

```
public final CancelButtonGravity valueOf(String value)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

<a id="throws"></a>

#### Throws

kotlin.​Illegal​Argument​Exception

if this enum type has no constant with the specified name
