Sharer
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

The common interface for components that initiate sharing.

الحزمة:share
طرق المثيلات
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.

public boolean getShouldFailOnDataError()
Returns
A Boolean value.
setShouldFailOnDataError(boolean)

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.

public void setShouldFailOnDataError(boolean shouldFailOnDataError)
المعلمةالوصف
shouldFailOnDataErrorWhether the dialog should fail if it finds an error.