NearShareHelper Class

  • java.lang.Object
    • com.microsoft.connecteddevices.remotesystems.commanding.nearshare.NearShareHelper

public class NearShareHelper

This class generates an implementation of the NearShareFileProvider interface, which represents a single file to be shared.

Method Summary

Modifier and Type Method and Description
NearShareFileProvider createNearShareFileFromContentUri(Uri contentUri, Context context)

Creates an implementation of **NearShareFileProvider** to share the given content URI.

Method Details

createNearShareFileFromContentUri

public static NearShareFileProvider createNearShareFileFromContentUri(Uri contentUri, Context context)

Creates an implementation of **NearShareFileProvider** to share the given content URI.

Parameters:

contentUri - A content URI pointing to the file to be shared. The returned class will parse this file to deliver the necessary data.
context - The application context.

Returns:

An implementation of **NearShareFileProvider** to share the file.

Throws:

IllegalArgumentException

Applies to