Interface

SpatialAlignment.Depth

An interface to calculate the position of a box of a certain depth inside an available depth.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public interface Depth

An interface to calculate the position of a box of a certain depth inside an available depth.

Functions

offset

public fun offset(depth: Int, space: Int): Int

Provides the depth offset from the origin of the space to the origin of the content.

Parameters

depth The content depth in pixels.
space The available space in pixels.