Skip to main content
API Reference SwiftyNsdk NsdkSession

requestedDataInputs

Get the current set of input data types that are required by NSDK's native...

Declaration

func requestedDataInputs() -> NsdkInputDataFlags

Summary

Get the current set of input data types that are required by NSDK's native
components.
Use this method to determine what data should be included in frames sent to sendFrame(_:).
The required data formats may change based on currently active features and their states.
- Returns: Flags indicating which data types are currently required
## Example
swift <br />let requiredInputs = session.requestedDataInputs() <br />if requiredInputs.contains(.camera) &#123; <br /> // Include camera data in frame <br />&#125; <br />if requiredInputs.contains(.depth) &#123; <br /> // Include depth data in frame <br />&#125; <br />


ON THIS PAGE