ActivityResultContract.SynchronousResult


public final class ActivityResultContract.SynchronousResult<T extends Object>


The wrapper for a result provided in getSynchronousResult. This allows differentiating between a null T synchronous result and no synchronous result at all.

Summary

Public constructors

<T extends Object> SynchronousResult(@NonNull T value)

Public methods

final @NonNull T

Public constructors

SynchronousResult

public <T extends Object> SynchronousResult(@NonNull T value)

Public methods

getValue

Added in 1.2.0
public final @NonNullgetValue()