Search code examples
androidsyntaxhyperlinkdocumentation

What does # mean in https://developer.android.com/


I often find links with # such as

A camera capture session that was switched to offline mode via successful call to CameraCaptureSession#switchToOffline.

for example in https://developer.android.com/reference/kotlin/android/hardware/camera2/package-summary

I tried to find everywhere but couldn't find what it means. I want to know what does # mean, why don't they use .


Solution

  • I got the answer, basically @David K is right.

    The # symbol in the URL https://developer.android.com/ is used to indicate a specific section of the page. It is called a fragment identifier.

    The fragment identifier is used to identify a portion of the document that can be uniquely identified by an ID attribute or some other attribute.

    In my case, it is used to identify a specific method in the CameraCaptureSession class called switchToOffline.

    Reference: https://www.w3.org/DesignIssues/Fragment.html