Skip to content

Commit 468962b

Browse files
ivolivol
authored andcommitted
Document initialize comment options and reinitialization in REFERENCE.md
1 parent 3334b09 commit 468962b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

REFERENCE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The [application context](https://developer.android.com/reference/android/conten
3434

3535
It is possible to pass an empty `config` string to indicate that no initialization of the underlying native Approov SDK is required. This initializes the service layer in a bypass mode, allowing you to obtain a standard, non-Approov protected Retrofit client. If you attempt to use any direct native Approov SDK functions (such as `fetchToken` or `precheck`) while bypassed, an `ApproovException` will be thrown. You may later call `initialize` again with a valid `config` string to enable Approov protection for Retrofit instances obtained after that point. Retrofit instances obtained while bypassed remain standard, non-Approov protected clients and should be discarded if protection is later enabled.
3636

37-
An alternative initialization function allows to provide further options in the `comment` parameter. Please refer to the [Approov SDK documentation](https://approov.io/docs/latest/approov-direct-sdk-integration/#sdk-initialization-options) for details.
37+
An alternative initialization function allows to provide further options or trigger reinitialization in the `comment` parameter. Please refer to the [Approov SDK documentation](https://approov.io/docs/latest/approov-direct-sdk-integration/#sdk-initialization-options) for details.
3838

3939
**Java:**
4040
```java
@@ -46,6 +46,8 @@ void initialize(Context context, String config, String comment)
4646
fun initialize(context: Context, config: String, comment: String)
4747
```
4848

49+
For example, options like `options:no-install-key` or reinitialization via `reinit` can be supplied via the `comment` parameter.
50+
4951
## isInitialized
5052
Indicates whether the Approov service layer has been initialized.
5153

0 commit comments

Comments
 (0)