public class

SpecificUtils

extends Object
java.lang.Object
   ↳ com.neomades.platform.SpecificUtils

Class Overview

This class is useful when writing platform specific code.

Summary

Public Constructors
SpecificUtils()
Public Methods
static Object getSpecificApplication(Application application)
  • Android: android.app.Application
  • iOS: UIApplication
static Object getSpecificAudioPlayer(AudioPlayer player)
  • Android: android.media.MediaPlayer
  • iOS: AVAudioPlayer
static Object getSpecificHttpResponse(HttpResponse response)
Returns the corresponding platform specific HTTP response.
static Object getSpecificScreen(Screen screen)
  • Android: android.app.Activity
  • iOS: UIViewController
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SpecificUtils ()

Public Methods

public static Object getSpecificApplication (Application application)

  • Android: android.app.Application
  • iOS: UIApplication

Parameters
application the generic application instance
Returns
  • the platform-specific application instance

public static Object getSpecificAudioPlayer (AudioPlayer player)

  • Android: android.media.MediaPlayer
  • iOS: AVAudioPlayer

Parameters
player the generic audio player instance
Returns
  • the platform-specific audio player instance

public static Object getSpecificHttpResponse (HttpResponse response)

Returns the corresponding platform specific HTTP response.

  • iOS: NSHTTPURLResponse
  • Android: org.apache.http.HttpResponse

Returns
  • the platform-specific HttpResponse instance

public static Object getSpecificScreen (Screen screen)

  • Android: android.app.Activity
  • iOS: UIViewController

Parameters
screen the generic screen instance
Returns
  • the platform-specific screen instance