Sharer
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

The common interface for components that initiate sharing.

Gói:share
Phương thức thực thể
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)
Thông sốMô tả
shouldFailOnDataErrorWhether the dialog should fail if it finds an error.