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.