Android SDK Version


public interface Sharer
The common interface for components that initiate sharing.
Nested Class Summary
Modifier and TypeClassDescription
public 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 voidsetShouldFailOnDataError(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 boolean getShouldFailOnDataError()
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 void setShouldFailOnDataError(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.