toLocationRequest

@RequiresApi(value = 31)
@NonNull
open fun toLocationRequest(): @NonNull LocationRequest(source)

Converts an instance to an equivalent LocationRequest.

Return

platform class object

See also


@Nullable
open fun toLocationRequest(@NonNull provider: @NonNull String): @Nullable LocationRequest(source)

Converts an instance to an equivalent LocationRequest, with the provider field of the resulting LocationRequest set to the provider argument provided to this method.

May return null on some SDKs if various reflective operations fail. This should only occur on non-standard Android devices, and thus should be rare.

Return

platform class object

See also