Skip to main content
Version: 12 Dec 2024

ml_platform.h

Functions

Name
MLResultMLPlatformGetAPILevel(uint32_t * out_api_level)
Query the OS for which Platform API Level is supported.

Defines

Name
ML_PLATFORM_API_LEVEL

Functions Documentation

MLPlatformGetAPILevel

MLResult MLPlatformGetAPILevel(
uint32_t * out_api_level
)

Query the OS for which Platform API Level is supported.

Parameters

uint32_t *out_api_levelPointer to an integer that will store the API level.

Returns

MLResultMLResult_OkOperation completed successfully.
MLResultMLResult_InvalidParamout_platform_level was not valid (null).
MLResultMLResult_UnspecifiedErrorOperation failed.

Required Permissions:

  • None

Macros Documentation

ML_PLATFORM_API_LEVEL

#define ML_PLATFORM_API_LEVEL 33

Current API Level supported by this Magic Leap SDK.


Source code

// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) 2017 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement,
// located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying
// this distribution may also be found in the top-level NOTICE file
// appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%

#pragma once

#include "ml_api.h"

ML_EXTERN_C_BEGIN

#define ML_PLATFORM_API_LEVEL 33

ML_API MLResult ML_CALL MLPlatformGetAPILevel(uint32_t *out_api_level);

ML_EXTERN_C_END