public class PFObjectFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_licenseKey |
Constructor and Description |
---|
PFObjectFactory() |
Modifier and Type | Method and Description |
---|---|
static PFAsset |
assetFromAssetFileDescriptor(Context context,
AssetFileDescriptor afd,
PFAssetObserver observer)
Create an asset from an Asset File Descriptor
|
static PFAsset |
assetFromCamera(Activity activity,
java.lang.String ip,
PFAssetObserver observer) |
static PFAsset |
assetFromUri(Context context,
Uri uri,
PFAssetObserver observer)
Create an asset from an Uri
|
static PFAsset |
assetFromUrl(Activity activity,
java.lang.String url,
PFAssetObserver observer)
Create an asset from a String, mainly used to reference an URL
|
static boolean |
assetFromUrlExists(Activity activity,
java.lang.String url) |
static PFBase |
baseCreate() |
static void |
registerLicenseKey(java.lang.String key)
Create an asset from an Uri
|
static PFView |
view(Activity activity)
Create a PFView object to use within the application
|
static PFView |
vr(Activity activity)
Create a PFView VR object to use within the application
|
public static void registerLicenseKey(java.lang.String key)
context
- The application/activity context used to create the asseturi
- The Uri identifying the assetobserver
- The asset observer to register to the asset to monitor progresspublic static PFAsset assetFromUri(Context context, Uri uri, PFAssetObserver observer)
context
- The application/activity context used to create the asseturi
- The Uri identifying the assetobserver
- The asset observer to register to the asset to monitor progresspublic static PFAsset assetFromAssetFileDescriptor(Context context, AssetFileDescriptor afd, PFAssetObserver observer)
context
- The application/activity context used to create the assetafd
- The asset file descriptor to useobserver
- The asset observer to register to the asset to monitor progresspublic static PFAsset assetFromUrl(Activity activity, java.lang.String url, PFAssetObserver observer)
activity
- The activity context used to create the asseturl
- The URL of the assetobserver
- The asset observer to register to the asset to monitor progresspublic static boolean assetFromUrlExists(Activity activity, java.lang.String url)
public static PFView view(Activity activity)
activity
- The activity context used to create the viewpublic static PFView vr(Activity activity)
activity
- The activity context used to create the viewpublic static PFAsset assetFromCamera(Activity activity, java.lang.String ip, PFAssetObserver observer)
public static PFBase baseCreate()