Device Overview

Sce.PlayStation.Core.Device provides the following features.

  • A feature for obtaining image data from a camera device is provided. In addition, a dialog feature for easily saving/loading photo files taken with a camera is provided.
  • A feature for tracking location information using GPS, Wi-Fi, and 3G networks is provided.

Camera

The video data of camera devices can be obtained in real time. This can be used in AR apps or in proprietary camera apps.

Camera Class

The Camera class is a class for controlling a camera device. In addition, various camera device information can be obtained.

  • The number of camera devices can be obtained.
  • The camera device direction and usable resolutions can be obtained.
  • A resolution can be specified and video data can be obtained in real time.
  • Photos can be taken. The photos taken can be saved to local storage as files.

Video data obtaining is executed asynchronously.

Photo Import Dialog

Photo files taken/selected by end users can be transferred to local storage accessible by PSM applications.

There are two types of photo import dialog.

  • CameraImportDialog
  • PhotoImportDialog

CameraImportDialog Class

 Displays the photography screen.  Photos taken by end users with this screen will be transferred to local storage as files.

 This is useful for easily obtaining the photography results of a camera.

PhotoImportDialog Class

 Displays a list screen of the photos saved to the device.  Photos selected by end users with this screen will be transferred to local storage as files.

 Use this to obtain photos taken/saved outside of PSM.

 In addition, by using this dialog, a method for re-loading photo files exported with Image.Export() can be provided to users.

Location

Tracks location information using GPS, Wi-Fi, and 3G networks. To obtain location information, set the Publishing Utility's [Common Property] tab - [Location] to true.

Location Class

The Location class is a class for tracking location information.

  • Location.Start(): Starts tracking location information
  • Location.GetData(): Tracks location information
  • Location.Stop(): Stops tracking location information

GPS Emulation Feature

In a PlayStation(R)Mobile simulator environment, an emulation feature with location information using a GPS emulation file is provided. The %SCE_PSM_SDK%/tools/Location/gpsdata.nma file will be automatically loaded and pseudo position information will be updated.