Roblox API Reference

StudioDeviceEmulatorService On DevHub

Summary

This class is not creatable. An object of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
This item is not replicated. Its interface does not cross the network boundary.

Tags: [NotCreatable, Service, NotReplicated]

Inherits (1)

Member index (8)

Type Member History
bool EmulatePCDeviceWithResolution (string deviceId, Vector2 resolution)
string GetCurrentDeviceId ()
ScreenOrientation GetCurrentOrientation ()
bool HasDeviceWithId (string deviceId)
void SetCurrentDeviceId (string deviceId)
void SetCurrentOrientation (ScreenOrientation orientation)
CurrentDeviceIdChanged ()
OrientationChanged ()
51 members inherited from Instance

History

Members

CurrentDeviceIdChanged On DevHub

Name Type Default
No parameters.

EmulatePCDeviceWithResolution On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
deviceId string none
resolution Vector2 none

Tags: [Yields]

GetCurrentDeviceId On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
No parameters.

Tags: [Yields]

GetCurrentOrientation On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
No parameters.

Tags: [Yields]

HasDeviceWithId On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
deviceId string none

Tags: [Yields]

OrientationChanged On DevHub

Name Type Default
No parameters.

SetCurrentDeviceId On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
deviceId string none

Tags: [Yields]

SetCurrentOrientation On DevHub

This function yields. It will block the calling thread until completion.
Name Type Default
orientation ScreenOrientation none

Tags: [Yields]

Relevant enums (1)