Logo

dev-resources.site

for different kinds of informations.

检测app是否运行在visionOS的临时方法

Published at
11/20/2024
Categories
multiplatform
mixedreality
ios
Author
yo1995
Categories
3 categories in total
multiplatform
open
mixedreality
open
ios
open
Author
6 person written this
yo1995
open
检测app是否运行在visionOS的临时方法

TL;DR

/// A Boolean indicating whether the current device is running visionOS or not.
private let isOnVisionOS = NSClassFromString("UIWindowSceneGeometryPreferencesVision") != nil
Enter fullscreen mode Exit fullscreen mode

需要注意的点:

  • 目前(202411)这是一个较为简单的检测方法。苹果还未提供官方API来实现这个功能。source
  • 这个检测无法判断app是处于iPadOS兼容性模式,还是visionOS原生模式运行。
mixedreality Article's
30 articles in total
Favicon
Virtual Reality in Web Development: Crafting Immersive Experiences with WebVR
Favicon
Zip Ship Hi-Tech Go-Cart Design Document - Microsoft CoPilot Assisted
Favicon
Exploring the Synergy Between Virtual Reality and Preconstruction Planning
Favicon
Augmented Reality Framework: A Comprehensive Guide
Favicon
Zip Ship Hi-Tech Go-Cart Design Document - Microsoft CoPilot Assisted
Favicon
检测app是否运行在visionOS的临时方法
Favicon
ViitorCloud Technologies at AsiaBerlin Summit 2024: Your Gateway to Next-Gen Business Solutions
Favicon
Introduction to Android XR
Favicon
VR and Architecture: Visualizing Real-World Designs Through Gaming Technology
Favicon
The Art of Crafting Immersive Worlds: Inside the Mind of a Virtual Reality Game Developer
Favicon
From Bricks& Beams to Bits&Bytes
Favicon
🌐 Exploring Virtual Reality and Augmented Reality in Web Development
Favicon
Stop Sharing 3D Assets Over Email and Shared Drives & Start Using A 3D DAM
Favicon
Outsourcing VR Game Development Without Breaking Your Budget
Favicon
Mixture of Experts: An In-Depth Exploration
Favicon
AR in E-Commerce: Transforming Online Shopping Experiences
Favicon
VYUG - A New era of Digital Existence
Favicon
The Role of VR Technology in Education, Medical Sector, and Industry: A Path to Profit for Newcomers
Favicon
Harnessing AI in Game Development: Partnering with VR Game Development Companies for Metaverse Success
Favicon
Building IP in Gaming: From Concept to Brand
Favicon
What is Cloud Gaming for VR?
Favicon
Cross-Platform Game Development: Building Games for All Devices
Favicon
Exploring Amazon Games
Favicon
The Ultimate 3D Game Asset Management for Game Studios
Favicon
The Evolution of Game Design: A Journey Through Time
Favicon
Hound Lab Mix Facts
Favicon
Simulanis-Virtual Reality Company in India
Favicon
Augmented Reality navigation
Favicon
Augmented Reality Features of PlugXR
Favicon
Manage & view 3D assets with Sony Spatial Reality Display (SRD) and echo3D (Tutorial)

Featured ones: