<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>hooks/ on SAFER Documentation</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/</link><description>Recent content in hooks/ on SAFER Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/index.xml" rel="self" type="application/rss+xml"/><item><title>hooks/useAccelerometer.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useaccelerometer/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useaccelerometer/</guid><description>&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;useAccelerometer&lt;/code&gt; hook provides a reactive interface to real-time accelerometer sensor data using react-native-sensors.&lt;/p&gt;
&lt;p&gt;It is responsible for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;subscribing to device accelerometer updates&lt;/li&gt;
&lt;li&gt;exposing live sensor values through React state&lt;/li&gt;
&lt;li&gt;synchronizing sensor lifecycle with component lifecycle&lt;/li&gt;
&lt;li&gt;configuring sensor sampling frequency&lt;/li&gt;
&lt;li&gt;automatically cleaning up subscriptions on unmount&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The hook is designed for lightweight motion-aware features in React Native applications.&lt;/p&gt;</description></item><item><title>hooks/useAsync.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useasync/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useasync/</guid><description>&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;useAsync&lt;/code&gt; hook provides a lightweight abstraction for managing asynchronous operations in React components.&lt;/p&gt;
&lt;p&gt;It is responsible for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;executing async functions&lt;/li&gt;
&lt;li&gt;tracking loading state&lt;/li&gt;
&lt;li&gt;capturing execution errors&lt;/li&gt;
&lt;li&gt;storing resolved values&lt;/li&gt;
&lt;li&gt;exposing a reusable async execution API&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The hook simplifies async UI state management while preserving generic typing support.&lt;/p&gt;</description></item><item><title>hooks/useHeartrate.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useheartrate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useheartrate/</guid><description>&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;useHeartRate&lt;/code&gt; module provides a cross-platform heart rate retrieval and aggregation system for React Native applications.&lt;/p&gt;
&lt;p&gt;It is responsible for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;reading heart rate samples from platform health APIs&lt;/li&gt;
&lt;li&gt;computing a time-weighted rolling heart rate average&lt;/li&gt;
&lt;li&gt;validating recency and coverage quality of sensor data&lt;/li&gt;
&lt;li&gt;exposing asynchronous loading/error state&lt;/li&gt;
&lt;li&gt;supporting both foreground and background collection flows&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The implementation integrates with:&lt;/p&gt;</description></item><item><title>hooks/useHeatstrokeMonitor.ts</title><link>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useheatstrokemonitor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://safer-capstone.pages.dev/developer-docs/api-reference/hooks/useheatstrokemonitor/</guid><description>&lt;h3 id="purpose"&gt;Purpose&lt;/h3&gt;
&lt;p&gt;This module provides real-time and background heatstroke risk monitoring with automated alerting based on a temperature-derived risk score.&lt;/p&gt;
&lt;p&gt;It is responsible for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;detecting elevated heatstroke risk conditions&lt;/li&gt;
&lt;li&gt;enforcing cooldown-based alert throttling&lt;/li&gt;
&lt;li&gt;triggering user notifications when risk thresholds are exceeded&lt;/li&gt;
&lt;li&gt;supporting both React lifecycle and background execution contexts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The alerting system is built around a configurable risk threshold and time-based rate limiting to prevent notification spam.&lt;/p&gt;</description></item></channel></rss>