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

A base class for a facebook button.

الإضافات:Button
الحزمة:facebook
أدوات الإنشاء
FacebookButtonBase(Context, AttributeSet, int, int, String, int)
protected FacebookButtonBase(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, String analyticsButtonCreatedEventName, int requestCode)
المعلمةالوصف
context
attrs
defStyleAttr
defStyleRes
analyticsButtonCreatedEventName
requestCode
طرق المثيلات
setFragment(Fragment)

Sets the fragment that contains this control. This allows the button to be embedded inside a Fragment, and will allow the fragment to receive the onActivityResult.onActivityResult(int, int, android.content.Intent) call rather than the Activity.

public void setFragment(Fragment fragment)
المعلمةالوصف
fragmentThe fragment that contains this control
getFragment()

Gets the fragment that contains this control.

public Fragment getFragment()
Returns
The fragment that contains this control.
setRequestCode(int)

Set the request code for the startActivityForResult call. The requestCode should be outside of the range of those reserved for the Facebook SDK FacebookSdk.isFacebookRequestCode(int). This method should also be called prior to registering any callbacks.

protected void setRequestCode(int requestCode)
المعلمةالوصف
requestCodeThe request code to use.
getRequestCode()

Returns the request code used for this Button.

public int getRequestCode()
Returns
The request code.
getActivity()
protected Activity getActivity()
getDefaultStyleResource()
protected int getDefaultStyleResource()
configureButton(Context, AttributeSet, int, int)
protected void configureButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
المعلمةالوصف
context
attrs
defStyleAttr
defStyleRes
callExternalOnClickListener(View)
protected void callExternalOnClickListener(View v)
المعلمةالوصف
v
setInternalOnClickListener(OnClickListener)
protected void setInternalOnClickListener(OnClickListener l)
المعلمةالوصف
l