Android SDK Version


public interface Sharer
The common interface for components that initiate sharing.
Nested Class Summary
Modifier and TypeClassDescription
public final classSharer.Result
Helper object for handling the result from a share dialog or share operation
Method Summary
Modifier and TypeMethodDescription
abstract BooleangetShouldFailOnDataError() Specifies whether the sharer should fail if it finds an error with the share content.
abstract UnitsetShouldFailOnDataError(Boolean shouldFailOnDataError) Specifies whether the sharer should fail if it finds an error with the share content.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getShouldFailOnDataError

 abstract BooleangetShouldFailOnDataError()
Specifies whether the sharer should fail if it finds an error with the share content. If false, the share dialog will still be displayed without the data that was mis-configured. For example, an invalid placeID specified on the shareContent would produce a data error.

setShouldFailOnDataError

 abstract UnitsetShouldFailOnDataError(Boolean shouldFailOnDataError)
Specifies whether the sharer should fail if it finds an error with the share content. If false, the share dialog will still be displayed without the data that was mis-configured. For example, an invalid placeID specified on the shareContent would produce a data error.
Parameters:
shouldFailOnDataError - whether the dialog should fail if it finds an error.